Fixes #207

https://github.com/couchbase/couchbase-lite-java-core/issues/207#issuecomment-44339498