HexToDec: move the guarding into the trigger.

I don't know why this didn't occur to me, but thankfully it did to
@mintsoft!