inital fix for datastore error on queries
moved try/except block inside while loop
Merge pull request #1611 from AppScale/groomer-fix

Handle datastore error on queries.