Fixed error when query parser could not rebuild a parsed query