Added compatibility for Contao 3.4