The ‘Modern Family’ actress admitted she was hesitant about taking on the job when producers approached her but ultimately, it felt like the “right thing” to do.