Internal Selector: Fix crash when switching palette.
Why the palettedocker itself has no issue with this line though...
Ah well.