Complete issue #123

- Port fixed to the Issue couchbase/couchbase-lite-android#103