CBQE-1220 fix the bug for commit Change I89c8ef88

Change-Id: I564e298b23aa8a9ee2b5ebcae077444a1feef7fd
Reviewed-on: http://review.couchbase.org/26041
Reviewed-by: Chisheng Hong <chisheng@couchbase.com>
Tested-by: Chisheng Hong <chisheng@couchbase.com>