Hello!
The bottom most polyline has a duplicate point in the top-right corner:
Depending on your script, you might have the check the polycurve points for duplicates and delete them!
Edit: Just checked your script - apparently, Dynamo does this automatically now. It works for me without any errors. You might want to restart AutoCAD and Dynamo.
