Fixes #283

https://github.com/couchbase/couchbase-lite-android/issues/283