Fix #3304.

Fix crash in tostring_rgba_minimized when the region has zero-size.

Thanks to @neothemachine for tracking this down.