Fixes warning when search results are not visible