Safer handling of the user defaults change.