Contacts: Fix IllegalArgumentException when link contacts

When choose contact to link, we will see "Contacts keep stopping".
The root cause is that query SQL loss the "selection".

Add the query SQL "selection" and remove useless code meanwhile.

Change-Id: I09f475672cb989804d5ebb3f2a5352a974598cea
CRs-Fixed: 2449645
3 files changed