Added let g:airline_theme='dark' to vimrc.

By setting a theme the theme switching code is avoided, and this seems to get
around the exit code problem when editing git commit messages.