fix findOne method when no documents found