The ‘Modern Family’ actress opened up about the trolling she received online when her career started to take off a decade ago.