This fixes https://github.com/couchbase/couchbase-lite-net/issues/344