there are some that think too much stress will cause hermies and there are others that think it is pre-programmed in the plants genetics .
personally i think that if you take care not too stress your plants out too much then you are eliminating that possibility and what will be will be.