fixed singleResult throwing exceptions with null result instead