Fixes a bug in the loopingtaskproducer that was preventing the ltp from realizing it had completed its run.