Bug in curve Offset method and CurveOffsetCornerStyle.None

Hi all,
I am getting zero length line curve when offsetting a polyline curve . some curves work some don’t. I believe this is new in the latest Rhino update. please have a look.
bug in offset curve.gh (7.8 KB)