Fix possible notice
Merge pull request #6920 from SiR-DanieL/patch-2

Fix possible notice with taxes