Merge "Adjust the URL.getPath() not to be null when building a url for the Gerrit repository."