Validate first parameter as MongoId.