Hide sub menus if all pages in the sub menu is hidden.