fix json response to erroneous task creation.