Fix portlet navigation top level calculation
This refs affinitic #5785