Check that the path is not empty before calling CGContextClosePath or CGContextClip
Merge pull request #69 from WarrenWeckesser/quartz-empty-path

Quartz backend: Don't call CGContextClosePath or CGContextClip with an empty path