Add -hasUnfinishedTasks and -hasFailedTasks to TWTTaskGraph