issue #21121: prevent console crash in invalid tax save