Add null check on Settings#onSettingChanged.