Fix #3304.

Fix crash in tostring_rgba_minimized when the region has zero-size.

Thanks to @neothemachine for tracking this down.
Fix exception message
Simplify reference counting
Merge pull request #3324 from mdboom/backend-agg-crash

BUG : fixes memory corruption issues with zero-size rasterized artists

Fix #3304.