Proof for Docs not inserted during pull with validation

When pulling documents from sync gateway with validation block, the entire batch
of documents get reverted even if one of the documents in the batch fails validation.
This is due to the way nested transactions are handled and cause incorrect behaviour.

Testcase for: https://github.com/couchbase/couchbase-lite-java-core/issues/242