Fixes #2687 XATTRS: Panic in updateAndReturnDoc
Fixes #2687 XATTRS: Panic in updateAndReturnDoc

ceejatec/sync_gateway,couchbaselabs/sync_gateway,couchbaselabs/sync_gateway,ceejatec/sync_gateway,ceejatec/sync_gateway,couchbaselabs/sync_gateway,ceejatec/sync_gateway,couchbaselabs/sync_gateway