Don't test a bool value towards true/false

Change-Id: I1a67e7d2635b867314528812e3ae17d5dc1354b9
Reviewed-on: http://review.couchbase.org/27960
Reviewed-by: Michael Wiederhold <mike@couchbase.com>
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Tested-by: Trond Norbye <trond.norbye@gmail.com>
Reviewed-by: Mark Nunberg <mnunberg@haskalah.org>