Fix exception "need more than two values to unpack" when an invalid ticket is specified.