Using a search category with an empty input no longer uses the previously searched for query

Fixes bug https://bugs.launchpad.net/juju-gui/+bug/1375123