amend(collectionRepeat): don't render an extra item at the end

Closes #2027