Repository: stable-diffusion-webui
Issue: [Bug]: Generated images not displayed when "Settings" tab is hidden.
Labels: bug

### Is there an existing issue for this?

- [X] I have searched the existing issues and checked the recent builds/commits

### What happened?

When I set  "Settings" to be hidden in Settings/User Interface generated images are visible in the preview during generation but disappear as soon as the image is finished. Generated images show up fine, when "Settings" are not hidden.

This makes A1111 unusable in the setting I want it to be deployed. I need "Settings" to be hidden.



### Steps to reproduce the problem

1. In Settings/User Interface add "Settings" to the list of hidden tabs
2. Restart a1111
3. Generate image


### What should have happened?

After generation of images is completed, generated images should be visible in the web ui.


### Sysinfo

[sysinfo-2023-11-06-16-06.txt](https://github.com/AUTOMATIC1111/stable-diffusion-webui/files/13269629/sysinfo-2023-11-06-16-06.txt)


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

Mozilla Firefox

### Console logs

```Shell
Python 3.10.6 (main, Oct 24 2022, 16:07:47) [GCC 11.2.0]
Version: v1.6.0
Commit hash: 5ef669de080814067961f28357256e8fe27544f4
Launching Web UI with arguments: --xformers
/home/codinglab/anaconda3/envs/a1111_1/lib/python3.10/site-packages/bitsandbytes/cextension.py:127: UserWarning: The installed version of bitsandbytes was compiled without GPU support. 8-bit optimizers and GPU quantization are unavailable.
  warn("The installed version of bitsandbytes was compiled without GPU support. "
2023-11-06 17:10:11.570862: I tensorflow/core/platform/cpu_feature_guard.cc:182] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.
To enable the following instructions: AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.
Loading weights [6ce0161689] from /home/codinglab/Installs/stable-diffusion-webui/models/Stable-diffusion/v1-5-pruned-emaonly.safetensors
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
Creating model from config: /home/codinglab/Installs/stable-diffusion-webui/configs/v1-inference.yaml
Startup time: 8.5s (prepare environment: 0.9s, import torch: 4.1s, import gradio: 0.7s, setup paths: 0.7s, other imports: 0.3s, load scripts: 0.8s, create ui: 0.5s, gradio launch: 0.4s).
Applying attention optimization: xformers... done.
Model loaded in 3.6s (load weights from disk: 0.6s, create model: 0.3s, apply weights to model: 2.2s, calculate empty prompt: 0.5s).
100%|████████████████████████████████████████████████████████████████████████████████████████████████████| 24/24 [00:01<00:00, 16.96it/s]
Restarting UI...
Closing server running on port: 7860
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
Startup time: 0.4s (load scripts: 0.2s, create ui: 0.2s).
Traceback (most recent call last):
  File "/home/codinglab/anaconda3/envs/a1111_1/lib/python3.10/site-packages/gradio/blocks.py", line 1312, in postprocess_data
    block = self.blocks[output_id]
KeyError: 2476

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/codinglab/anaconda3/envs/a1111_1/lib/python3.10/site-packages/gradio/routes.py", line 488, in run_predict
    output = await app.get_blocks().process_api(
  File "/home/codinglab/anaconda3/envs/a1111_1/lib/python3.10/site-packages/gradio/blocks.py", line 1434, in process_api
    data = self.postprocess_data(fn_index, result["prediction"], state)
  File "/home/codinglab/anaconda3/envs/a1111_1/lib/python3.10/site-packages/gradio/blocks.py", line 1314, in postprocess_data
    raise InvalidBlockError(
gradio.exceptions.InvalidBlockError: Output component with id 2476 used in load() event not found in this gr.Blocks context. You are allowed to nest gr.Blocks contexts, but there must be a gr.Blocks context that contains all components and events.
100%|████████████████████████████████████████████████████████████████████████████████████████████████████| 24/24 [00:01<00:00, 18.63it/s]
```


### Additional information

_No response_