Fix error output for task with no image