fix an issue with layer order list when ThemeSwitcher was triggered after the app was started from a permalink.