fix optional port parameter

Change-Id: Id3bf9f665ecdc3ee675d15d7b87c4eee3c18ae99
Reviewed-on: http://review.couchbase.org/23719
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Pavel Paulau <pavel.paulau@gmail.com>