Fixed getSingleResult to check for hasSingleResult first to avoid issues with provider implementations.
Merge pull request #90 from PureSolTechnologies/master

Fixed getSingleResult to check for hasSingleResult first to avoid issues...