Fix a bug in the undo function that displays zero tasks even when there are tasks. This happened when the user undoes all his commands all the way to the start, and zero tasks will be displayed even if there were tasks when the program was started.