Fix bug with querying.

Correct potential missuse of body object.

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