Make the EndPoint.getBaseUrl() public and fix the an issue when the
endpoint is null in the ClientService (RestClient class)