fixed a NPE crash where the lookup uri of a deleted contact was used to fetch the contact photo