Small refactoring to mongo_find_one to remove duplicated code

Small refactoring suggested with co-worker @AugustoPedraza to remove code duplication on mongo_find_one()