If a group is hidden, its name still appears as a tab

but the tab is empty whichi is confusing for the user.