avoid NPE during shutdown of replication, after a fix on replication
Merge pull request #1197 from clebertsuconic/2.3.x.fixrepl

avoid NPE during shutdown of replication, after a fix on replication