A bit more juicy goodness in the matchMongoId function.