esm: Ensure custom loader resolved "url" is properly validated
This ensures that any loader returning a non-valid URL from the resolve hook will throw an error in the main resolution.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines