Fixes issue #29

https://github.com/couchbase/couchbase-lite-java-core/issues/29