Clear search filter when switching tabs in Extension Manager

#5856.
I did simple changes in src and wanted to fix unit test, but couldn't find any tests for function _showDialog. May be they are should be written? I could try to do it.