Hide query background element when result is removed

If queries popup opened the query background also displayed. In case when active result is removed (first result) also need to remove query background.