Enforce is_primary while deleting objects CRM-10732