Handle corrupted commit object correctly.