Update record.py

Quick proposal to support scenarios where `avg_hr`, `max_hr` or both are zero. 

Feel free to improve it!