fix for fact that getSingleResult doesn't return null on no results but throws an error
@see AbstractQuery getSingleResult