fix empty trailing line issue

In a case where the last contributor is being replaced by .mailmap
git shortlog contains an empty line at the end - we need to strip that.