Fixed the incompatibility with Contao 3.0.3 and above (see #2)