Fixes couchbase-lite-android issue 444

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