proxyquery: fix source handling for api chain