Robyn Denholm sold Tesla stock in recent months while Elon Musk, the chief executive she oversees, worked for President Trump and alienated many car buyers.