Config tool: sanitize capi queries

Because empty query params in capi queries break the pressing job.