MB-11131: handle default port case

Change-Id: I3ffca42afcc96414acb54b5a3933567425785ce1
Reviewed-on: http://review.couchbase.org/42673
Reviewed-by: Bin Cui <bin.cui@gmail.com>
Tested-by: Bin Cui <bin.cui@gmail.com>