libs/web: add assert() statements for unresolvable function case