gdi: don't pollute invalid region with empty rects
Merge pull request #2258 from nfedera/fix-2014-12-05-02

gdi: don't pollute invalid region with empty rects