Fix crash due to invalid contacts being submitted to Registrar module.

Merged Simon Morlat requested to merge fix/fix_crash_in_registrar_module into master

Merge request reports