Correct issue with N1QL query instantiation.

Change-Id: Ie92a09dc25edc60f8949d27c85baa7be4ad3aac4
Reviewed-on: http://review.couchbase.org/41675
Tested-by: Brett Lawson <brett19@gmail.com>
Reviewed-by: Mark Nunberg <mnunberg@haskalah.org>