gitlog-to-changelog: don't infloop on an empty commit log