Fixed error handling for results with no taskID