Fix generation if group has no next_invoice_date.