When a directory in the palette is empty it is still shown. Additionally, when searching, the empty folder is always shown, even though it contains no search results.
Filter empty directories.