Fix possible crash if git config is broken