BUGFIX: correctly parse taskseries with tasks array.

When a taskseries contains both completed and incomplete tasks, the 'task' key
in the json response will be an array of tasks, vs just a single task in other
cases.