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 


@LEDfan please fix the indentation, and use only tabs