Load the default themes in safe mode

Closes #3173.
Fixed.