Fix warning if https protocol was requested but isn't available.