Fixes #305 testContinuousReplicationErrorNotification test fail on Jenkins

Worked around by adding null checks.

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