[ThemeManager] Fixed crash on saving settings when theme is unavailable.