Custom Scheduler Code - Account Record - Seems to “Break” Email Relationship on Save - Please help!?

This was introduced to fix that problem with workflows removing email fields, then also in inline editing that also removed email fields