Reset cursor before and after getSingleResult()
Merge pull request #148 from doctrine/cursor-getSingleResult

Reset cursor before and after getSingleResult()