Fix bug with querying.
Fix bug with querying.

Correct potential missuse of body object.

Change-Id: I048d0c9a4e7227b6b1c8adc8db40f5f9f146209d
Reviewed-on: http://review.couchbase.org/30043
Tested-by: Brett Lawson <c8c4369773d7d7226e031f0c4af62e3f38a08510@gmail.com>
Reviewed-by: Mark Nunberg <e7d42768707bf23038325b0b68d4b577e5f6064a@haskalah.org>

ConnectedHomes/couchnode,jess-sheneberger/couchnode,corbinu/couchnode,actano/couchnode,couchbase/couchnode,brett19/couchnode,jess-sheneberger/couchnode,kshmir/couchnode,couchbase/couchnode,GannettDigital/couchnode,KenanSulayman/couchnode,ConnectedHomes/couchnode,actano/couchnode,ConnectedHomes/couchnode,Bloutiouf/couchnode,KenanSulayman/couchnode,GannettDigital/couchnode,kshmir/couchnode,couchbase/couchnode,brett19/couchnode,ConnectedHomes/couchnode,couchbase/couchnode,kshmir/couchnode,corbinu/couchnode,actano/couchnode,brett19/couchnode,KenanSulayman/couchnode,jess-sheneberger/couchnode,KenanSulayman/couchnode,corbinu/couchnode,GannettDigital/couchnode,Bloutiouf/couchnode,Bloutiouf/couchnode,jess-sheneberger/couchnode,Bloutiouf/couchnode