MB-11888: handle lack of https ports in config

Change-Id: I65aad8952c895dc2dfdfe9fd7e3a2cb2b8e9b27d
Reviewed-on: http://review.couchbase.org/40448
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Reviewed-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>