Correct regression, correctly raise exception when setting incorrect param

Correct regression, correctly raise exception when setting incorrect param

diff --git a/lib/site_setting_extension.rb b/lib/site_setting_extension.rb
index 6822dcb..83172f1 100644
--- a/lib/site_setting_extension.rb
+++ b/lib/site_setting_extension.rb
@@ -406,6 +406,8 @@ module SiteSettingExtension
       set(name, value)
       value = prev_value = "[FILTERED]" if secret_settings.include?(name.to_sym)
       StaffActionLogger.new(user).log_site_setting_change(name, prev_value, value)
+    else
+      raise Discourse::InvalidParameters
     end
   end

GitHub sha: 20f84a36