Handle NoResultException by returning null.