Contao 3 compatibility fixes.