Use default forceAnalyzeQueryString if no query builder is present

In the single field case no query builder is selected which causes NPE
when the query has only a numeric field.

Closes #6215