Yeah, it will generate that error when you cancel an image while it's being uploaded, as there is a check done at the end to process the image.
I've reported it to the devs, but it's probably something that should be handled slightly differently, as it's a deliberate failed upload (given you cancelled it).