[libcommhistory] Ignore contact accounts without localUid field for resolution

Valid accounts must have a localUid, and the empty field can be confused
with the syntax used for phone numbers, which leads to bad comparisons.