Raise error when mongo.find() fails.

Check if mongo.find() was successful, and try to raise an error if it was not.