git-compat-util: don't assume value for undefined variable