Fixed crash when there are no deletions in git log

As the commit message says.