Fixed bug with Contao 3.2 isVisibleElement