Fix StringIndexOutOfBoundException in StockholmTicket due to hex string
that was not zero-padded.