Removed returning null when index out of bounds on getReplicaAddress