query: get rid of superfluous hasErr member in parser test cases.
query: get rid of superfluous hasErr member in parser test cases.

Change-Id: I398a0b4070527b540f9268bc60849887f34d76b5

google/zoekt,google/zoekt