Emacs: Fix error when opening magit