#1499 check that task[0] exists first