Ensure moduleMocker more correctly handles module.exports === undefined and module.exports === null