Fixed exception when selecting no theme.