[BUGFIX] Detect subpages using original page UID

When useShortcutUid or useShortcutData is set to TRUE detection of subpages was based on the overwritten page UID which is not desired
Merge pull request #226 from bjo3rnf/menufix

[BUGFIX] Detect subpages using original page UID