Load the default themes in safe mode

Closes #3173.
This line needs to be indented two more spaces.