BEFORE SAVING ANYTHING, THIS IS A VERY IMPORTANT STEP, YOU MUST NOT MISS
I am sure you are familiar with the layer - brushes window on GIMP, it always to the right side of the main window and it displays all the layers of the image in a list.
Well it turns this window is yet even more important for the next reason, read carefully:
the APNG plugin will cause an error when trying to save an APNG image, if the first layer in the stack is not of the size of the whole image
Now to make things clear by "the first layer", i am referring to the layer that is on the very top of the stack list.
Notice in the pictures, that the first layer is called "Frame 289", so while it may be the last frame in the animation, as long as this is on top of the stack it will be the layer that needs to meet the size condition.
Very often, APNG files produced using Virtual Dub or other program, or even made by you, will not meet this condition.
Thankfully, a very easy way to fix this is to just right click the top layer , which will cause a drop down menu to show, and select Layer to image size. Our problems are gone.