Fix delete past bug when list only contains past tasks