removed possible infinite loop in streammerger.next_tasks
_actually_ removed possible infinite loop in streammerger.next_tasks