Add compatibility for TYPO3 6.1 (thanks Simon http://forge.typo3.org/issues/56715 )