fix #3611738 Guard against empty query.

Closes #3611738

Merge request reports

Loading