magit-commit-internal: populate COMMIT_EDITMSG for fallback

Close #1036.