Fixes #305 testContinuousReplicationErrorNotification test fail on Jenkins

Worked around by adding null checks.

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

Conflicts:
	src/main/java/com/couchbase/lite/replicator/Replication.java
Issue #305 fix format string issue

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