Throw InvalidArgumentException when calling findOne{,OrFail} with invalid argument