[libcommhistory] Compare input phone numbers after normalization failure

If normalization returns nothing, which could happen for e.g. non-numeric input, compare the input string instead of an empty string.

Also, avoid trying to resolve empty UIDs in the new ContactResolver. ContactListener has to continue to depend on whatever libcontacts does.