[tz] [PROPOSED 3/3] Fix subscript error when timecnt == 0