bugfix: SubImage can return nil

XPaintRects leads to nil pointer dereference if it's passed non-intersecting rects.