Fixed a bug with self-ip detection for HA replication system

Change-Id: I32f2c494f7d406fbcfaa65719670708cb740d348
Closes-bug:  #1296806