Add checks for removed $GLOBALS
Some global variables were removed, we should check access to them:
TYPO3CMSCoreCompatibilityGlobalObjectDeprecationDecorator has been removed without replacement. Do not use $GLOBALS['typo3CacheManager'] and $GLOBALS['typo3CacheFactory'] anymore, use GeneralUtility::makeInstance() instead.