Error when creating rebar following PolyCurves (continued)

What does the “The input PolyCurve must be closed” mean? I thought that my policurves had some gaps that the Polycurve.ByJoinedCurves missed, so I created the same polycurve using Polycurve.ByPoints and got the same result:

Any ideas?