[BUGFIX] Detect subpages using original page UID

When useShortcutUid or useShortcutData is set to TRUE detection of subpages is based on the overwritten page UID which is not desired