Fix findbugs NPE warning in CliGitAPIImpl