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 tested without, sometimes it works but sometimes there is strange behaviour. (Like not overwriting etc) I would keep it.