Fixed buggy logic in determining state of contact sensor for heart rate monitor