Fix https://github.com/cloudant/sync-android/issues/17