From the moment the episode was filmed nearly 10 months ago, the “Survivor” producers had been consulting with Mr. Smith about how best to handle airing the incident, which included a strategic media rollout and working with Glaad, the gay, lesbian, bisexual and transgender rights group, before the episode’s broadcast.