Small fix with case when list of tasks is empty