fix invoice report when there are no customer classes, #37243, from #25943