Fixing selection management problems:

1. Clicking on a contact in QSB would not select the contact
and sometimes would not show it at all.
2. A really slow directory would prevent the first found contact
from being selected
3. If a request to view a non-existent contact was sent to the app,
it would sometimes fall into an infinite loop.

Bug: 3304574
Bug: 3304475


Change-Id: Id31582840535992550e33bc64674a0248ad7d66c
3 files changed