Fixes bug 847294 - Force running query when do_query is set in the URL.
Merge pull request #310 from AdrianGaudebert/847294-run-query-from-nightly-builds

Fixes bug 847294 - Force running query when do_query is set in the URL.