Originally seen while investigating wordpress-mobile/WordPress-Android#9377
If an upload is happening, and the user deletes the image block containing the image being uploaded, we should cancel the upload, just like we do in onUndoMediaCheck() for Aztec.
To test:
- start a new draft
- insert an image block
- choose an image from the device to start the upload
- once the upload starts, tap on the block's trash icon
- observe the image continues being uploaded, even when there's no longer a block where to put the image into.