Exception when trying to use Git plugin immediately after installing without restart.
selected Git installation does not exists. Using Default
FATAL: 0
java.lang.ArrayIndexOutOfBoundsException: 0
	at hudson.plugins.git.GitTool.getDefaultInstallation(GitTool.java:61)
	at hudson.plugins.git.GitSCM.resolveGitTool(GitSCM.java:824)
	at hudson.plugins.git.GitSCM.getGitExe(GitSCM.java:837)
	at hudson.plugins.git.GitSCM.getGitExe(GitSCM.java:830)
	at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1095)
	at hudson.model.AbstractProject.checkout(AbstractProject.java:1369)
	at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:676)
	at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88)
	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:581)
	at hudson.model.Run.execute(Run.java:1576)
	at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:486)
	at hudson.model.ResourceController.execute(ResourceController.java:88)
	at hudson.model.Executor.run(Executor.java:241)