ims_registrar_scscf: Fix memory corruption in build_contacts, in case no contacts available