Fix. Added a check of key format in the hash returned by XMLin.

This saves as from attempts to treat all its elements as hash
references, containing Ticket attributes.