[Panels] Handle applets properly when changing panel layouts