Fixes crash when going to search tab with no results