(TK-43) Fix query param issue with proxy

This PR fixes the issue reported by @praxxis wherein a proxy handler added with add-proxy-route would crash when given a query parameter.
I'd add something about the specific aspect of proxy support that you're testing here - e.g., something like "basic http proxy support with query parameters".