Fix ErrNoHeartbeat check