[BUGFIX] Fix useless post-render hook when INT scripts are present

Fixes: #51748
Change-Id: Ieb71f606d2633fabd812e83e64f7f285b1fb93f2
Releases: 6.0, 6.1, 6.2

Conflicts:
	typo3/sysext/core/Classes/Page/PageRenderer.php