Correction to hashcode calculation
Precedence would cause NullPointerException on null tag or value