ScheduleDetail: fix a crash when credit is a range.