Handle the case of a single task (not a list)