Add compatibility for Contao 3