Summary: This change minimally addresses the issue that `debugrebuilddirstate` can crash if the dirstate file is very corrupt. Reviewed By: markbt Differential Revision: D7028370 fbshipit-source-id: 72fc7a2900a8bc1bb5f062454530b4fc4c806f09