Repository: stable-diffusion-webui
Issue: [Bug]: Batch img2img with multiple X/Y/Z denoising values is giving TypeError: 'NoneType' object is not subscriptable (WebUI 1.5.2)
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?

I always used this setup with the older versions with no issues and it saves all 7 denoising results, although now giving a 'TypeError: 'NoneType' object is not subscriptable' error just after processing the first image with 7 denoising strengths and not saving them or moving onto the next image.

From what I'm seeing online this indicates that I'm missing out on a required field, but given this exact setup has worked on previous versions, and I triple checked for any fields I should complete, don't know where to go about this.

Tried both with the checkbox 'Include Sub Images' on and off hence the two times trying to process in the console logs

Working in 1.6.0 with this setup if that's anything to note.

### Steps to reproduce the problem

[Have my img2img setup here.](https://i.imgur.com/8DUtcbQ.png)

### What should have happened?

It should save the 7 images for the first image input and move onto the next image(s) from the input folder.

### Sysinfo

[sysinfo-2023-09-06-12-15.txt](https://github.com/AUTOMATIC1111/stable-diffusion-webui/files/12537185/sysinfo-2023-09-06-12-15.txt)

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

Google Chrome

### Console logs

```Shell
Will process 2 images, creating 1 new images for each.
X/Y/Z plot will create 7 images on 1 7x1 grid. (Total steps to process: 350)
100%|██████████████████████████████████████████████████████████████████████████████████| 23/23 [00:17<00:00,  1.29it/s]
100%|██████████████████████████████████████████████████████████████████████████████████| 26/26 [00:19<00:00,  1.32it/s]
100%|██████████████████████████████████████████████████████████████████████████████████| 28/28 [00:21<00:00,  1.31it/s]
100%|██████████████████████████████████████████████████████████████████████████████████| 31/31 [00:23<00:00,  1.30it/s]
100%|██████████████████████████████████████████████████████████████████████████████████| 33/33 [00:25<00:00,  1.27it/s]
100%|██████████████████████████████████████████████████████████████████████████████████| 36/36 [00:28<00:00,  1.25it/s]
100%|██████████████████████████████████████████████████████████████████████████████████| 38/38 [00:30<00:00,  1.24it/s]
Total progress:  61%|███████████████████████████████████████▎                        | 215/350 [03:13<02:01,  1.11it/s]
*** Error completing request████████████████████████████████▎                        | 215/350 [03:13<01:50,  1.22it/s]
*** Arguments: ('task(ggohqrep8vp39h4)', 5, 'masterpiece, best quality, (1girl:1.2), solo, medium breasts, kousaka honoka, love live! school idol project, side ponytail, orange hair, blue eyes, blue suit, orange necktie, balcony, new york city, city in the background, night, cityscape, city lights', 'lowres, bad anatomy, bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, jpeg artifacts, signature, watermark, username, blurry, coronavirus pandemic, surgical mask, EasyNegative, (bad_prompt_version2:0.8), (badhandv4:0.6)', [], None, None, None, None, None, None, None, 50, 1, 4, 0, 1, False, False, 1, 1, 11, 1.5, 0.35, -1.0, -1.0, 0, 0, 0, False, 0, 768, 768, 1, 0, 0, 32, 0, 'C:\\Users\\Acoolrocket\\Pictures\\Input', 'C:\\Users\\Acoolrocket\\Pictures\\512', '', [], False, [], '', <gradio.routes.Request object at 0x000002051BCCB700>, 8, '<ul>\n<li><code>CFG Scale</code> should be 2 or lower.</li>\n</ul>\n', True, True, '', '', True, 50, True, 1, 0, False, 4, 0.5, 'Linear', 'None', '<p style="margin-bottom:0.75em">Recommended settings: Sampling Steps: 80-100, Sampler: Euler a, Denoising strength: 0.8</p>', 128, 8, ['left', 'right', 'up', 'down'], 1, 0.05, 128, 4, 0, ['left', 'right', 'up', 'down'], False, False, 'positive', 'comma', 0, False, False, '', '<p style="margin-bottom:0.75em">Will upscale the image by the selected scale factor; use width and height sliders to set tile size</p>', 64, 0, 2, 22, '0.45, 0.5, 0.55, 0.6, 0.65, 0.7, 0.75', [], 0, '', [], 0, '', [], False, True, False, True, 0, '<p style="margin-bottom:0.75em">Will upscale the image depending on the selected target size type</p>', 1024, 0, 25, 50, 64, 0.35, 50, 3, True, 0, False, 25, 0, 0, 2048, 2048, 4) {}
    Traceback (most recent call last):
      File "C:\ai\stable-diffusion-webui\modules\call_queue.py", line 58, in f
        res = list(func(*args, **kwargs))
      File "C:\ai\stable-diffusion-webui\modules\call_queue.py", line 37, in f
        res = func(*args, **kwargs)
      File "C:\ai\stable-diffusion-webui\modules\img2img.py", line 226, in img2img
        process_batch(p, img2img_batch_input_dir, img2img_batch_output_dir, img2img_batch_inpaint_mask_dir, args, to_scale=selected_scale_tab == 1, scale_by=scale_by, use_png_info=img2img_batch_use_png_info, png_info_props=img2img_batch_png_info_props, png_info_dir=img2img_batch_png_info_dir)
      File "C:\ai\stable-diffusion-webui\modules\img2img.py", line 118, in process_batch
        infotext = proc.infotext(p, n)
      File "C:\ai\stable-diffusion-webui\modules\processing.py", line 457, in infotext
        return create_infotext(p, self.all_prompts, self.all_seeds, self.all_subseeds, comments=[], position_in_batch=index % self.batch_size, iteration=index // self.batch_size)
      File "C:\ai\stable-diffusion-webui\modules\processing.py", line 649, in create_infotext
        negative_prompt_text = f"\nNegative prompt: {all_negative_prompts[index]}" if all_negative_prompts[index] else ""
    TypeError: 'NoneType' object is not subscriptable

---
Will process 2 images, creating 1 new images for each.
X/Y/Z plot will create 7 images on 1 7x1 grid. (Total steps to process: 350)
100%|██████████████████████████████████████████████████████████████████████████████████| 23/23 [00:17<00:00,  1.35it/s]
100%|██████████████████████████████████████████████████████████████████████████████████| 26/26 [00:19<00:00,  1.33it/s]
100%|██████████████████████████████████████████████████████████████████████████████████| 28/28 [00:21<00:00,  1.31it/s]
100%|██████████████████████████████████████████████████████████████████████████████████| 31/31 [00:23<00:00,  1.30it/s]
100%|██████████████████████████████████████████████████████████████████████████████████| 33/33 [00:25<00:00,  1.29it/s]
100%|██████████████████████████████████████████████████████████████████████████████████| 36/36 [00:28<00:00,  1.25it/s]
100%|██████████████████████████████████████████████████████████████████████████████████| 38/38 [00:30<00:00,  1.24it/s]
Total progress:  61%|███████████████████████████████████████▎                        | 215/350 [03:11<02:00,  1.12it/s]
*** Error completing request████████████████████████████████▎                        | 215/350 [03:11<01:51,  1.21it/s]
*** Arguments: ('task(otm4kejytdx2p4q)', 5, 'masterpiece, best quality, (1girl:1.2), solo, medium breasts, kousaka honoka, love live! school idol project, side ponytail, orange hair, blue eyes, blue suit, orange necktie, balcony, new york city, city in the background, night, cityscape, city lights', 'lowres, bad anatomy, bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, jpeg artifacts, signature, watermark, username, blurry, coronavirus pandemic, surgical mask, EasyNegative, (bad_prompt_version2:0.8), (badhandv4:0.6)', [], None, None, None, None, None, None, None, 50, 1, 4, 0, 1, False, False, 1, 1, 11, 1.5, 0.35, -1.0, -1.0, 0, 0, 0, False, 0, 768, 768, 1, 0, 0, 32, 0, 'C:\\Users\\Acoolrocket\\Pictures\\Input', 'C:\\Users\\Acoolrocket\\Pictures\\512', '', [], False, [], '', <gradio.routes.Request object at 0x000002066E589480>, 8, '<ul>\n<li><code>CFG Scale</code> should be 2 or lower.</li>\n</ul>\n', True, True, '', '', True, 50, True, 1, 0, False, 4, 0.5, 'Linear', 'None', '<p style="margin-bottom:0.75em">Recommended settings: Sampling Steps: 80-100, Sampler: Euler a, Denoising strength: 0.8</p>', 128, 8, ['left', 'right', 'up', 'down'], 1, 0.05, 128, 4, 0, ['left', 'right', 'up', 'down'], False, False, 'positive', 'comma', 0, False, False, '', '<p style="margin-bottom:0.75em">Will upscale the image by the selected scale factor; use width and height sliders to set tile size</p>', 64, 0, 2, 22, '0.45, 0.5, 0.55, 0.6, 0.65, 0.7, 0.75', [], 0, '', [], 0, '', [], False, False, False, True, 0, '<p style="margin-bottom:0.75em">Will upscale the image depending on the selected target size type</p>', 1024, 0, 25, 50, 64, 0.35, 50, 3, True, 0, False, 25, 0, 0, 2048, 2048, 4) {}
    Traceback (most recent call last):
      File "C:\ai\stable-diffusion-webui\modules\call_queue.py", line 58, in f
        res = list(func(*args, **kwargs))
      File "C:\ai\stable-diffusion-webui\modules\call_queue.py", line 37, in f
        res = func(*args, **kwargs)
      File "C:\ai\stable-diffusion-webui\modules\img2img.py", line 226, in img2img
        process_batch(p, img2img_batch_input_dir, img2img_batch_output_dir, img2img_batch_inpaint_mask_dir, args, to_scale=selected_scale_tab == 1, scale_by=scale_by, use_png_info=img2img_batch_use_png_info, png_info_props=img2img_batch_png_info_props, png_info_dir=img2img_batch_png_info_dir)
      File "C:\ai\stable-diffusion-webui\modules\img2img.py", line 118, in process_batch
        infotext = proc.infotext(p, n)
      File "C:\ai\stable-diffusion-webui\modules\processing.py", line 457, in infotext
        return create_infotext(p, self.all_prompts, self.all_seeds, self.all_subseeds, comments=[], position_in_batch=index % self.batch_size, iteration=index // self.batch_size)
      File "C:\ai\stable-diffusion-webui\modules\processing.py", line 649, in create_infotext
        negative_prompt_text = f"\nNegative prompt: {all_negative_prompts[index]}" if all_negative_prompts[index] else ""
    TypeError: 'NoneType' object is not subscriptable

---
```


### Additional information

_No response_