Fix PHP error in Preferences when default_folders was in dont_override (#1489940)