fix application of credits to tax-exempt sales items, #33772, from #18509