lib: fix Module check when monkey patching
Apparently, the last security release broke the coverage of reports of nyc
. I'm still waiting for a reproducible example so I can create a test for that, but I am confident this should fix the problem.
Fixes: https://github.com/istanbuljs/nyc/issues/1530
cc: @bmeck