fix produce() before consume(). closes #6010

better than an improved error message, make it work :)