Fixes #257 by changing to match ios code.

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