GerritSshApi: strip 'gerrit+' instead of leaving only it

[2018-04-12 22:30:04,038] [ReplicateTo-bitbucket-1] ERROR com.googlesource.gerrit.plugins.replication.GerritSshApi : Error creating remote repository at gerrit+ssh://gerrit-bitbucket@localhost/:
Exception: org.eclipse.jgit.errors.TransportException: gerrit+: host must not be null.
Command: gerrit create-project --branch refs/heads/master repo/test
Output:
org.eclipse.jgit.errors.TransportException: gerrit+: host must not be null.

Change-Id: Ib53258625b3677f621d2e7e9d6df4b04a94a921d
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
diff --git a/src/main/java/com/googlesource/gerrit/plugins/replication/GerritSshApi.java b/src/main/java/com/googlesource/gerrit/plugins/replication/GerritSshApi.java
index 08dc296..b46a0d9 100644
--- a/src/main/java/com/googlesource/gerrit/plugins/replication/GerritSshApi.java
+++ b/src/main/java/com/googlesource/gerrit/plugins/replication/GerritSshApi.java
@@ -96,7 +96,7 @@
   private URIish toSshUri(URIish uri) throws URISyntaxException {
     String uriStr = uri.toString();
     if (uri.getHost() != null && uriStr.startsWith(GERRIT_ADMIN_PROTOCOL_PREFIX)) {
-      return new URIish(uriStr.substring(0, GERRIT_ADMIN_PROTOCOL_PREFIX.length()));
+      return new URIish(uriStr.substring(GERRIT_ADMIN_PROTOCOL_PREFIX.length()));
     }
     String rawPath = uri.getRawPath();
     if (!rawPath.endsWith("/")) {