Fix the bug of trying to parsing response as normal spark job result
when the execution of the job failed.