Merged fit2tcx changes. Bugfix for invalid heartrate values