Complete issue #123

- Port fixed to the Issue couchbase/couchbase-lite-android#103
It was moved to the beginning of the stopped() method.