Backport of the initializeSystem Hook for Contao Open Source CMS.