### ImageMagick version

7.1.0-58 - 7.1.0-62+

### Operating system

Windows

### Operating system, version and so on

Windows 10 x64

### Description

Converting apng to webp works just fine up to and including 7.1.0-57. Newer versions (the last I tried is 7.1.0-62) fail with:

magick.exe: ERROR adding frame: Invalid frame dimensions. `test.webp' @ error/webp.c/WriteAnimatedWEBPImage/965


### Steps to Reproduce

1. Download https://jpegxl.info/test-page/anim-icos.apng or use the same file attached to this bug ticket
2. Try to convert with "magick.exe apng:anim-icos.png test.webp"

### Images

![anim-icos](https://user-images.githubusercontent.com/10775306/223000664-178062b9-4a2d-4e94-a4fe-547796f754d3.png)

Converting to animated webp regression
This is a GitHub Issue
repo:ImageMagick
owner:ImageMagick
Title : Converting to animated webp regression
Issue date:

--- start body ---
### ImageMagick version

7.1.0-58 - 7.1.0-62+

### Operating system

Windows

### Operating system, version and so on

Windows 10 x64

### Description

Converting apng to webp works just fine up to and including 7.1.0-57. Newer versions (the last I tried is 7.1.0-62) fail with:

magick.exe: ERROR adding frame: Invalid frame dimensions. `test.webp' @ error/webp.c/WriteAnimatedWEBPImage/965


### Steps to Reproduce

1. Download https://jpegxl.info/test-page/anim-icos.apng or use the same file attached to this bug ticket
2. Try to convert with "magick.exe apng:anim-icos.png test.webp"

### Images

![anim-icos](https://user-images.githubusercontent.com/10775306/223000664-178062b9-4a2d-4e94-a4fe-547796f754d3.png)

--- end body ---
