Backout the remove of the hack in Loader.resolveURI

For full path given to require(), there is not always
the corresponding URI in the mapping. We should then check
this case.