break out of while loop on successful request execution

https://github.com/couchbase/couchbase-lite-android/issues/398
testGoOffline() passes

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