fixed an NPE crash 

fixed an NPE crash where the lookup uri of a deleted contact was used to fetch the contact photo.
This is a re-work of the previous fix. Same symptom (NPE), different cause.
Internally, openContactPhotoInputStream doesn't seem to cope well with stale lookup uris. If the referenced contact no longer exists, the method throws an NPE.