[BUGFIX] Get original page id to fetch layouts

Change-Id: I46ed17f0f495a9ab6d1018c0593f280c6449b23d
Resolves: #62938
Releases: master
Reviewed-on: http://review.typo3.org/35560
Reviewed-by: Jo Hasenau <info@cybercraft.de>
Tested-by: Jo Hasenau <info@cybercraft.de>