Prevent a crash in MCGContextFill/Stroke when path is nil