Amend HBASE-11394 Replication can have data loss if peer id contains hyphen

Fix compilation error in TestReplicationTrackerZKImpl