fix(errors): use util.inherits() and protect edge case
fix(errors): use util.inherits() and protect edge case

mongodb/node-mongodb-native,mongodb/node-mongodb-native,mongodb/node-mongodb-native,mongodb/node-mongodb-native