Updated error where empty tasks were injected into the task queue