Fix race in processing initial heartbeats

From multiple EEAgents on the same node