Fix git-fsck-objects SIGSEGV/divide-by-zero