draw: fix out of memory handling in polygon stipple stage