Repository: stable-diffusion-webui
Issue: [Bug]: Textual Inversion embeddings load error
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?

It was able to load normally before，Maybe after updates to the latest version, webui-user.bat it shows this error:


No Image data blocks found.
Error loading embedding 21charturnerv2.png:
Traceback (most recent call last):
  File "C:\SDiff\modules\textual_inversion\textual_inversion.py", line 206, in load_from_dir
    self.load_from_file(fullfn, fn)
  File "C:\SDiff\modules\textual_inversion\textual_inversion.py", line 155, in load_from_file
    name = data.get('name', name)
AttributeError: 'NoneType' object has no attribute 'get'

Textual inversion embeddings loaded(0):
Textual inversion embeddings skipped(1): 21charturnerv2
Model loaded in 5.4s (create model: 1.0s, apply weights to model: 0.8s, move model to device: 1.8s, load textual inversion embeddings: 1.7s).

### Steps to reproduce the problem

1.Launch webui.user.bat


### What should have happened?

should load the Textual Inversion embeddings correctly

### Commit where the problem happens

 a9fed7c3

### What platforms do you use to access the UI ?

Windows

### What browsers do you use to access the UI ?

Google Chrome

### Command Line Arguments

```Shell
set VENV_DIR=LISTEN
set COMMANDLINE_ARGS= --no-half --xformers
git pull
```


### List of extensions

sd-webui-controlnet

### Console logs

```Shell
Already up to date.
venv "LISTEN\Scripts\Python.exe"
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Commit hash: a9fed7c364061ae6efb37f797b6b522cb3cf7aa2
Installing requirements for Web UI

Launching Web UI with arguments: --no-half --xformers
[text2prompt] Following databases are available:
    all-mpnet-base-v2 : danbooru_strict
Loading weights [6da871fa3c] from C:\SDiff\models\Stable-diffusion\daybreakDiffusion_dbd10.safetensors
Creating model from config: C:\SDiff\configs\v1-inference.yaml
LatentDiffusion: Running in eps-prediction mode
DiffusionWrapper has 859.52 M params.
Applying cross attention optimization (Doggettx).
No Image data blocks found.
Error loading embedding 21charturnerv2.png:
Traceback (most recent call last):
  File "C:\SDiff\modules\textual_inversion\textual_inversion.py", line 206, in load_from_dir
    self.load_from_file(fullfn, fn)
  File "C:\SDiff\modules\textual_inversion\textual_inversion.py", line 155, in load_from_file
    name = data.get('name', name)
AttributeError: 'NoneType' object has no attribute 'get'

Textual inversion embeddings loaded(0):
Textual inversion embeddings skipped(1): 21charturnerv2
Model loaded in 5.5s (create model: 1.0s, apply weights to model: 0.7s, move model to device: 2.2s, load textual inversion embeddings: 1.5s).
[text2prompt] Loading database with name "all-mpnet-base-v2 : danbooru_strict"...
[text2prompt] Database loaded
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
Startup time: 42.1s (import gradio: 5.6s, import ldm: 2.1s, other imports: 5.2s, list extensions: 6.5s, setup codeformer: 0.3s, load scripts: 5.3s, load SD checkpoint: 5.7s, create ui: 11.1s, gradio launch: 0.2s).
```


### Additional information

_No response_