Issue #136 - workaround for nullpointerexception

https://github.com/couchbase/couchbase-lite-java-core/issues/136