Update query.py

Removed the assumption that an appengine search api response document will always have expressions.