contact: Allow EContact to be NULL

A contact with NULL contact is created in mm-chat-info to refer self.
So allow NULL contacts to avoid a critical
8 jobs for wip/sadiq/fix-a-critical in 9 minutes and 15 seconds (queued for 1 second)