[BUGFIX] Add TYPO3 6.2 compatibility

The patch brings TYPO3 CMS 6.2 compatibility while being
backward compatible with TYPO3 CMS 4.5.

Change-Id: I88200c6377be37a505903417c9bba7c5526f6a9d
Resolves: #56066
Releases: 2.1
Reviewed-on: https://review.typo3.org/29632
Reviewed-by: Fabien Udriot
Tested-by: Fabien Udriot