Reset cursor before and after getSingleResult()

Fixes https://github.com/doctrine/mongodb-odm/issues/520