Fixed reverse tax calculation being wrong when more than one tax applied to a given product

Fixes #3830