Remove sections from git config when they are empty. Refs #6824
Allow for there to have been no key set. Refs #6824
Remove config values when git-checkbuild starts on branch. Refs #6824
Merge remote branch 'origin/bugfix/6824_gittest_fix'