backport from trunk (rev #9688)

do not allocate tmrec structure if time recurrence for rule is empty