Added check to see whether Taskfile is returning instance of Task\Project