Bugfix: Adapt to new queryport API.

Change-Id: Ie72db6302315d8df7fbd3a6e6d0437314d3b4a10
Reviewed-on: http://review.couchbase.org/44005
Reviewed-by: Sriram Melkote <siri@couchbase.com>
Tested-by: Sriram Melkote <siri@couchbase.com>