Fixes bugs in query helpers that were causing empty keyword queries to throw errors in the tag search URLs.