Fix crash when using Emacs as commit editor for git.