Repository: stable-diffusion-webui
Issue: [Bug]: Latest update causes error on launch
Labels: bug-report

### Is there an existing issue for this?

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

### What happened?

Launched the cmd file with this error showing up

`Traceback (most recent call last):
  File "D:\AUTOMATIC1111\stable-diffusion-webui-directml\launch.py", line 48, in <module>
    main()
  File "D:\AUTOMATIC1111\stable-diffusion-webui-directml\launch.py", line 44, in main
    start()
  File "D:\AUTOMATIC1111\stable-diffusion-webui-directml\modules\launch_utils.py", line 681, in start
    webui.webui()
  File "D:\AUTOMATIC1111\stable-diffusion-webui-directml\webui.py", line 52, in webui
    initialize.initialize()
  File "D:\AUTOMATIC1111\stable-diffusion-webui-directml\modules\initialize.py", line 75, in initialize
    initialize_rest(reload_script_modules=False)
  File "D:\AUTOMATIC1111\stable-diffusion-webui-directml\modules\initialize.py", line 103, in initialize_rest
    sd_models.list_models()
  File "D:\AUTOMATIC1111\stable-diffusion-webui-directml\modules\sd_models.py", line 207, in list_models
    if jit_model_list is not None:
UnboundLocalError: local variable 'jit_model_list' referenced before assignment
Press any key to continue . . .`

### Steps to reproduce the problem

1. Launch webui
2. Update starts
3. Error shows

### What should have happened?

Launched normally after the update

### Sysinfo

`Traceback (most recent call last):
  File "D:\AUTOMATIC1111\stable-diffusion-webui-directml\launch.py", line 48, in <module>
    main()
  File "D:\AUTOMATIC1111\stable-diffusion-webui-directml\launch.py", line 44, in main
    start()
  File "D:\AUTOMATIC1111\stable-diffusion-webui-directml\modules\launch_utils.py", line 681, in start
    webui.webui()
  File "D:\AUTOMATIC1111\stable-diffusion-webui-directml\webui.py", line 52, in webui
    initialize.initialize()
  File "D:\AUTOMATIC1111\stable-diffusion-webui-directml\modules\initialize.py", line 75, in initialize
    initialize_rest(reload_script_modules=False)
  File "D:\AUTOMATIC1111\stable-diffusion-webui-directml\modules\initialize.py", line 103, in initialize_rest
    sd_models.list_models()
  File "D:\AUTOMATIC1111\stable-diffusion-webui-directml\modules\sd_models.py", line 207, in list_models
    if jit_model_list is not None:
UnboundLocalError: local variable 'jit_model_list' referenced before assignment
Press any key to continue . . .`

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

_No response_

### Console logs

```Shell
D:\AUTOMATIC1111\stable-diffusion-webui-directml>git pull
Already up to date.
venv "D:\AUTOMATIC1111\stable-diffusion-webui-directml\venv\Scripts\Python.exe"
fatal: No names found, cannot describe anything.
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Version: 1.6.0
Commit hash: f5c31ac10da7eba201862f4ba0dc338d69db4098
Launching Web UI with arguments: --opt-sub-quad-attention --upcast-sampling
no module 'xformers'. Processing without...
no module 'xformers'. Processing without...
No module 'xformers'. Proceeding without it.
Traceback (most recent call last):
  File "D:\AUTOMATIC1111\stable-diffusion-webui-directml\launch.py", line 48, in <module>
    main()
  File "D:\AUTOMATIC1111\stable-diffusion-webui-directml\launch.py", line 44, in main
    start()
  File "D:\AUTOMATIC1111\stable-diffusion-webui-directml\modules\launch_utils.py", line 681, in start
    webui.webui()
  File "D:\AUTOMATIC1111\stable-diffusion-webui-directml\webui.py", line 52, in webui
    initialize.initialize()
  File "D:\AUTOMATIC1111\stable-diffusion-webui-directml\modules\initialize.py", line 75, in initialize
    initialize_rest(reload_script_modules=False)
  File "D:\AUTOMATIC1111\stable-diffusion-webui-directml\modules\initialize.py", line 103, in initialize_rest
    sd_models.list_models()
  File "D:\AUTOMATIC1111\stable-diffusion-webui-directml\modules\sd_models.py", line 207, in list_models
    if jit_model_list is not None:
UnboundLocalError: local variable 'jit_model_list' referenced before assignment
Press any key to continue . . .
```


### Additional information

_No response_