Fix NPE when a contact has no default contact or no presence