handle broken diffs gracefully