Fix an exception in `YMongoDocument` and `YMongoIdBehaviour` when MongoId is incorrect