joinIndex is not set after recovery from full outage

This one breaks because it doesn't set joinIndex correctly.
It also breaks when switch from standby mode to peer mode because it finds that it has been in the cluster.