Fix updateConfigTheme method.

No Issue
- Fix exception being thrown when updateConfigTheme called before
  settingsCache fully populated.
- Remove unnecessary check in a conditional in the migration command
  builder.
Merge pull request #4493 from jaswilli/settings-migration

Fix updateConfigTheme method.