HADOOP-5392. Fixes a problem to do with JT crashing during recovery when the job files are garbled. Contributed by Amar Kamat.