Remove filter row when closing database file

Remove the filter row in the browse tab when closing the database.
Before this it would remain visible leading to a crash when using it.