gdiplus: Protect from mixing BrushTypeLinearGradient and BrushTypePathGradient.