[qtcontacts-sqlite] Refuse to look up invalid phone numbers

Commhistory events can have named senders instead of phone numbers,
don't try to look those up as empty strings because they will match
against all contacts that happen to have invalid phone numbers.

This has a side effect of fixing a bug in libcommhistory where
such numbers are never considered 'resolved'.