handle the case of newly created tasks with no id