Add a workaround for Contao 3.1

In Contao 3.1 the class will be called a second time with the
specificFields callback.
That's why $this->strOriginalPalettes will be overrided.
Therefore I use $_GLOBALS as a workaround.
Throw exception if no parent layouts are available