Added extra check to make sure an errored job can not be brought back