Fix bug when checking HTTPS connection to private registries

Fixed a malformed URL in the ping