Close the query area when clicking X if no query entered
Created originally on Bitbucket by bels (Stephen Belknap)
Currently, to toggle the query area from showing/not showing, one must click the magnifying glass button.
It may be nicer to have the X button that clears the query text field also close it if it is already empty.