[BUGFIX] Ensure hidden records are filtered out in RootlineUtility

RelationHandler always returns hidden records as well,
but they will crash when having pages.media with hidden
records.

If running in Frontend, this should not be allowed,
so the hidden restriction comes into effect.

This happens because we now use the RelationHandler
consistently instead of using manual SQL queries since
11.5.3.

Resolves: #95997
Resolves: #82844
Related: #63353
Releases: main, 11.5
Change-Id: I78131ebed97a20276adbe51fbc77dacfab2a0e77
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/72417
Tested-by: core-ci <typo3@b13.com>
Tested-by: Benni Mack <benni@typo3.org>
Reviewed-by: Benni Mack <benni@typo3.org>
346 jobs for 11.5 in 43 minutes and 14 seconds (queued for 1 minute and 13 seconds)