fix use of in-producer outside of for loops

- make-do-sequence was giving producer fn an argument when none was expected

Closes PR 13986