Check for null query on Percolator query loading and omit the query if it can't be parsed.

Closes #2547