magit-commit-add-log: reduce nesting
magit-commit-add-log: initiate commit if necessary

Close #829.