Prevent setupCustomTheme() being executed twice (and too early)