Fix the issue of Canvas.clipPath doesn't work before API level 18.