Make sure empty categories are not displayed