Repository: stable-diffusion-webui
Issue: [Bug]: Error during start webui if "extra_options_txt2img" has extension's key.
Labels: bug-report

### Checklist

- [ ] The issue exists after disabling all extensions
- [X] The issue exists on a clean installation of webui
- [X] The issue is caused by an extension, but I believe it is caused by a bug in the webui
- [X] The issue exists in the current version of the webui
- [X] The issue has not been reported before recently
- [ ] The issue has been reported before but has not been fixed yet

### What happened?

I cannot launch webui after adding an key from extension on ```extra_options_txt2img```(via Settings > Settings in UI >  Settings for txt2img).
I checked internel keys are okay, but any keys from extensions(whatever 3rdparty or builtin) makes webui faulty.

Unlike "Settings for txt2img", I could add keys to "Quicksettings list" without any problem.
However, I already have items on "Quicksettings list", so want to use "Settings for txt2img", too.

### Steps to reproduce the problem

1. Settings > Settings in UI > Settings for txt2img
2. add ```hypertile_enable_unet_secondpass``` (or any other keys from extensions)
3. "Apply Settings" then "Reload UI" and check WebUI is okay.
4. Stop WebUI and start again => process stopped.

### What should have happened?

- "Settings for txt2img" should accept keys from extensions.
- Or hide extension keys on dropdown selector
- WebUI should not stop in any case.

### What browsers do you use to access the UI ?

Google Chrome

### Sysinfo

[sysinfo-2024-01-24-06-51.json](https://github.com/AUTOMATIC1111/stable-diffusion-webui/files/14034174/sysinfo-2024-01-24-06-51.json)


### Console logs

```Shell
################################################################
Launching launch.py...
################################################################
Using TCMalloc: libtcmalloc_minimal.so.4
Python 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0]
Version: v1.7.0
Commit hash: cf2772fab0af5573da775e7437e6acdca424f26e
Launching Web UI with arguments: --ui-settings-file ./config-cs.json --ui-config-file ./ui-config-cs.json --port 8888 --cloudflared --disable-console-progressbars --gradio-auth ****:**** --no-half-vae --theme=dark --hide-ui-dir-config --xformers --xformers-flash-attention
Style database not found: /home/bedovyy/Servers/chanserv/styles.csv
Tag Autocomplete: Could not locate model-keyword extension, Lora trigger word completion will be limited to those added through the extra networks menu.
[-] ADetailer initialized. version: 23.10.1, num models: 9
cloudflared detected, trying to connect...
 * Running on https://puppy-clouds-thinks-intervals.trycloudflare.com
 * Traffic stats available on http://127.0.0.1:45315/metrics
Loading weights [7aa4a90429] from /home/bedovyy/Servers/chanserv/models/Stable-diffusion/SDXL/heartOfAppleXL_v10.safetensors
*** Error calling: /home/bedovyy/Servers/chanserv/extensions-builtin/extra-options-section/scripts/extra_options_section.py/ui
    Traceback (most recent call last):
      File "/home/bedovyy/Servers/chanserv/modules/scripts.py", line 489, in wrap_call
        return func(*args, **kwargs)
      File "/home/bedovyy/Servers/chanserv/extensions-builtin/extra-options-section/scripts/extra_options_section.py", line 45, in ui
        comp = ui_settings.create_setting_component(setting_name)
      File "/home/bedovyy/Servers/chanserv/modules/ui_settings.py", line 25, in create_setting_component
        info = opts.data_labels[key]
    KeyError: 'hypertile_enable_unet_secondpass'

---
*** Error calling: /home/bedovyy/Servers/chanserv/extensions/adetailer/scripts/!adetailer.py/ui
    Traceback (most recent call last):
      File "/home/bedovyy/Servers/chanserv/modules/scripts.py", line 489, in wrap_call
        return func(*args, **kwargs)
      File "/home/bedovyy/Servers/chanserv/extensions/adetailer/scripts/!adetailer.py", line 155, in ui
        components, infotext_fields = adui(num_models, is_img2img, webui_info)
      File "/home/bedovyy/Servers/chanserv/extensions/adetailer/adetailer/ui.py", line 114, in adui
        state, infofields = one_ui_group(
      File "/home/bedovyy/Servers/chanserv/extensions/adetailer/adetailer/ui.py", line 188, in one_ui_group
        inpainting(w, n, is_img2img, webui_info)
      File "/home/bedovyy/Servers/chanserv/extensions/adetailer/adetailer/ui.py", line 337, in inpainting
        w.ad_inpaint_only_masked.change(
      File "/home/bedovyy/Servers/chanserv/venv/lib/python3.10/site-packages/gradio/events.py", line 140, in __call__
        dep, dep_index = self.trigger.set_event_trigger(
      File "/home/bedovyy/Servers/chanserv/venv/lib/python3.10/site-packages/gradio/blocks.py", line 242, in set_event_trigger
        raise AttributeError(
    AttributeError: change() and other events can only be called within a Blocks context.

---
*** Error calling: /home/bedovyy/Servers/chanserv/extensions/sd-dynamic-thresholding/scripts/dynamic_thresholding.py/ui
    Traceback (most recent call last):
      File "/home/bedovyy/Servers/chanserv/modules/scripts.py", line 489, in wrap_call
        return func(*args, **kwargs)
      File "/home/bedovyy/Servers/chanserv/extensions/sd-dynamic-thresholding/scripts/dynamic_thresholding.py", line 70, in ui
        cfg_mode.change(shouldShowSchedulerValue, inputs=[cfg_mode, mimic_mode], outputs=[sched_val, mimic_scale_min, cfg_scale_min])
      File "/home/bedovyy/Servers/chanserv/venv/lib/python3.10/site-packages/gradio/events.py", line 140, in __call__
        dep, dep_index = self.trigger.set_event_trigger(
      File "/home/bedovyy/Servers/chanserv/venv/lib/python3.10/site-packages/gradio/blocks.py", line 242, in set_event_trigger
        raise AttributeError(
    AttributeError: change() and other events can only be called within a Blocks context.

---
*** Error calling: /home/bedovyy/Servers/chanserv/extensions/sd-webui-cutoff/scripts/cutoff.py/ui
    Traceback (most recent call last):
      File "/home/bedovyy/Servers/chanserv/modules/scripts.py", line 489, in wrap_call
        return func(*args, **kwargs)
      File "/home/bedovyy/Servers/chanserv/extensions/sd-webui-cutoff/scripts/cutoff.py", line 176, in ui
        debug.change(fn=set_debug, inputs=[debug], outputs=[])
      File "/home/bedovyy/Servers/chanserv/venv/lib/python3.10/site-packages/gradio/events.py", line 140, in __call_
_
        dep, dep_index = self.trigger.set_event_trigger(
      File "/home/bedovyy/Servers/chanserv/venv/lib/python3.10/site-packages/gradio/blocks.py", line 242, in set_event_trigger
        raise AttributeError(
    AttributeError: change() and other events can only be called within a Blocks context.

---
*** Error calling: /home/bedovyy/Servers/chanserv/scripts/prompts_from_file.py/ui
    Traceback (most recent call last):
      File "/home/bedovyy/Servers/chanserv/modules/scripts.py", line 489, in wrap_call
        return func(*args, **kwargs)
      File "/home/bedovyy/Servers/chanserv/scripts/prompts_from_file.py", line 122, in ui
        file.change(fn=load_prompt_file, inputs=[file], outputs=[file, prompt_txt, prompt_txt], show_progress=False)
      File "/home/bedovyy/Servers/chanserv/venv/lib/python3.10/site-packages/gradio/events.py", line 140, in __call__
        dep, dep_index = self.trigger.set_event_trigger(
      File "/home/bedovyy/Servers/chanserv/venv/lib/python3.10/site-packages/gradio/blocks.py", line 242, in set_event_trigger
        raise AttributeError(
    AttributeError: change() and other events can only be called within a Blocks context.

---
*** Error calling: /home/bedovyy/Servers/chanserv/scripts/xyz_grid.py/ui
    Traceback (most recent call last):
      File "/home/bedovyy/Servers/chanserv/modules/scripts.py", line 489, in wrap_call
        return func(*args, **kwargs)
      File "/home/bedovyy/Servers/chanserv/scripts/xyz_grid.py", line 457, in ui
        swap_xy_axes_button.click(swap_axes, inputs=xy_swap_args, outputs=xy_swap_args)
      File "/home/bedovyy/Servers/chanserv/venv/lib/python3.10/site-packages/gradio/events.py", line 140, in __call__
        dep, dep_index = self.trigger.set_event_trigger(
      File "/home/bedovyy/Servers/chanserv/venv/lib/python3.10/site-packages/gradio/blocks.py", line 242, in set_event_trigger
        raise AttributeError(
    AttributeError: click() and other events can only be called within a Blocks context.

---
Traceback (most recent call last):
  File "/home/bedovyy/Servers/chanserv/launch.py", line 48, in <module>
    main()
  File "/home/bedovyy/Servers/chanserv/launch.py", line 44, in main
    start()
  File "/home/bedovyy/Servers/chanserv/modules/launch_utils.py", line 464, in start
    webui.webui()
  File "/home/bedovyy/Servers/chanserv/webui.py", line 64, in webui
    shared.demo = ui.create_ui()
  File "/home/bedovyy/Servers/chanserv/modules/ui.py", line 355, in create_ui
    custom_inputs = scripts.scripts_txt2img.setup_ui()
  File "/home/bedovyy/Servers/chanserv/modules/scripts.py", line 663, in setup_ui
    dropdown.change(
  File "/home/bedovyy/Servers/chanserv/venv/lib/python3.10/site-packages/gradio/events.py", line 140, in __call__
    dep, dep_index = self.trigger.set_event_trigger(
  File "/home/bedovyy/Servers/chanserv/venv/lib/python3.10/site-packages/gradio/blocks.py", line 242, in set_event_trigger
    raise AttributeError(
AttributeError: change() and other events can only be called within a Blocks context.
Creating model from config: /home/bedovyy/Servers/chanserv/repositories/generative-models/configs/inference/sd_xl_base.yaml
Applying attention optimization: xformers... done.
Model loaded in 1.6s (load weights from disk: 0.4s, create model: 0.3s, apply weights to model: 0.8s).
```


### Additional information

_No response_