Reset search elements to fit an empty query on page load.

Fixes #1216