fixes a bug when the preference is reset.
Merge pull request #239 from elmamyra/import-export-theme

fixes a bug when the preference is reset.