Fixed bug with findOne() handling of errors.