Mongo: Avoid dereferencing a null cursor
Merge pull request #116 from noa--/mongo_cursor_null

Mongo: Avoid dereferencing a null cursor