Remove redundant nil clause in list-tasks