Executives were warned that transgender and gender-neutral jokes were potentially inflammatory and damaging.