Fix scheduling of heartbeat sending in HA plugin