Fix issues with new Registry feature in Contao 3.2