ISIS-980 Do not render empty sub-menu sections in the tertiary actions menu panel

Show the divider only if there are custom sub menu items