Hide search marker/object when closing sidebar

Fixes #417