Retrieve peer index and term before verifying server state in heartbeat.