(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.