[BUGFIX] Take versioned record into account for showHidden flag.
The flag showHiddenPage is set if the requested uid is a hidden page.
The original code always looked at the original uid and not to version
in the active workspace. This is fixed.
Change-Id: I6b1be8e459d499578ca30e13d1cc50e9b2ace415
Fixes: #33392
Releases: 6.0, 4.7, 4.6, 4.5
Reviewed-on: http://review.typo3.org/8720
Reviewed-by: Stefan Neufeind
Reviewed-by: Bart Dubelaar
Tested-by: Bart Dubelaar
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn