Get a QueryContext to conversion from parameter string.

Previously the warning appeared as "no query context on which to report exception" in the server log.