Investigating the production of sexual resting structures in a plant pathogen reveals unexpected self‐fertility and genotype‐by‐environment effects