Shorten settings_skins_apply() and correct some checks.