fixed a bug which locked the entire app when the user clicked on an empty query list [skip ci]