Work around potential divide-by-zero error

Under some circumstances, a file will be listed as having no additions
or deletions. This is probably a bug with pygit2, and this commit should
work around that issue.