MENU does no recognize subitems that are passwordprotected at login
If someone sets pages limited to access by a FE Group and logs in,
the ts menu does not recognize that the superior menuitem has subitems.
So the states for ifsub (ifsub, actifsub, curifsub) do not work directly after login. only after a refresh the menu continues to work.
(issue imported from #M4519)