CBD-1217:  fix error in computing callback URL

Change-Id: Ic5f4039b3e15408290151cab712291010e9043c3
Reviewed-on: http://review.couchbase.org/33132
Reviewed-by: Philip Labee <philip@couchbase.com>
Tested-by: Philip Labee <philip@couchbase.com>