gitcfg: guard against local_config returning None