Fixes prolems with database updates from Mongoose: not including the number of affected documents in response to getlasterror command following an update/remove and unhandled exception when a null is present as a selector value.