Use short circuit operators
Use short circuit operators

COUCHDB-2787

fkaempfer/couchdb,cloudant/couchdb-mango,fkaempfer/couchdb,fkaempfer/couchdb,fkaempfer/couchdb,fkaempfer/couchdb,fkaempfer/couchdb,apache/couchdb-mango,kxepal/couchdb-mango