fixes #791 - Handle new TaskState value: TASK_ERROR