Fix the createOrUpdate function

As said in #704, this function doens't work and I even think it never has worked... (or for a short time)
This function is accessed by the ContactsManager in core. 

cc @DeepDiver1975 


I suppose it could directly return $contact? It would save another database query