Fixed bug when saving settings and no valid themes directory specified