CBQE-0: fix cbtransfer failure due to a bug in cbtransfer

Change-Id: I532e5f879f145cc5e9be948a01ce6fcb611e6dae
Reviewed-on: http://review.couchbase.org/37057
Reviewed-by: Parag Agarwal <agarwal.parag@gmail.com>
Tested-by: Parag Agarwal <agarwal.parag@gmail.com>