Reset the search string when clearing the object view

Fixes #1760

Not much to it really.