It's a genetic trait, could be dominant or recessive. It actually depends on the other strain too. If it's a dominant gene it's going to pass it on regardless. If it's recessive, then it depends on the other plant as to whether or not it will surface. If the other plant has the more dominant genes then those genes will be expressed and not the gene for the hermie.
But keep in mind that no matter what, going forward, that gene will be in there, it might not show up in this generation but it will show up as soon as you do a cross where the other plant has the same gene or a more recessive gene.
Also it really does matter if you caused it to happen or not. Not that the genes changed because of anything you did, it just lets you know if it's a plant that always does it or only does it when stressed. Stress the plant and the ethylene production drops off, that gives you balls and you can get balls in any plant if you completely retard the ethylene (that's what silver does, stress also retards ethylene production, just not totally) So some plants will toss balls with any dip in ethylene production or in the case of the worst plants, they don't need the dip in ethylene to put out balls at all.
The odds of your seeds being good are actually better if you messed up, than if they turn hermi even with a perfect grow.