make replication checking backward compatible

make replication backward compatible. (works both Couch 1.1.0 and 1.1.5)
There should be some more place but this is added first due to #5145