magit-commit-add-log: bugfix

As suggested by Daniel Dehennin in #1309.