Added a check to cover the situations where the task wasn't able to be found when throwing an error.
Added a check to cover the situations where the task wasn't able to be found when throwing an error.

onlinebydesign/taskmaster