module: fix ERR_REQUIRE_ESM for parentPath null
Just came across this one when running require('./cjs.js')
in a REPL in a project with "type": "module"
where the ERR_REQUIRE_ESM was getting masked by an ERR_INVALID_ARG_TYPE
error error, followed by the terrible realization it was probably my own fault!