Fix potential NPE with null default category when computing a tax code