Verify that Object.getPrototypeOf(module) is null

Fixes #763