While it is natural to assume worm medicine is not beneficial for hatching eggs, and while most of us prefer not to hatch eggs during the toss period, it doesn't seem to be supported from the research that I can read.
A number of meds have actually been shown in researched studies to have no affect on the hatchability of the eggs, a concern for the hatchery and breeding industry.
Fenbendazole shows no affect after 2 doses
http://www.ncbi.nlm.nih.gov/pubmed/8310628
However, Fenbendazole can affect the quantity and production of semen in Turkeys, and therefore is either cycled out among the toms or replaced with something else
http://japr.oxfordjournals.org/content/15/2/307.full
Flubendazole (a UK product and not available in USA) shows no affect on hatchability of eggs
http://www.nutritech.co.nz/wp-content/uploads/Flubendazole_safety_in_breeders.pdf....page 20 of the brochure
Studies are limited that I can find, however, I find a lot of mention about non-use in laying hens (with concern for drug residue in the human food chain) but allowed use in breeders.
Nutrition does have a strong impact on hatchability of eggs.
https://ps.oxfordjournals.org/content/76/1/134.full.pdf
Worm overload can definitely starve a hen of her nutrition resulting in poor condition. Since worming often coincides with the possibility of poor nutritional condition of the hen, since many worm upon the tell tale signs of pale comb and actual worms in droppings, I should think it wold be hard to know if a poor hatch was from the worm medicine itself or from poor nutrition, or some other issue with the brooding/incubation.
I cannot find studies on Amprolium specifically relating to hatchability, but I do know that Amrpolium interferes with the ability to metabolize B vitamins in the protozoa (coccidia) and I've suspicion in susceptible hens as well. Vitamin B deficiency does cause embryo defects and poor hatch....but then again coccidiosis also starves hens from vitamin B.
Most worm meds affect the neurological system of the worms themselves either through the chloride gate or GABA gate, and many stay solely in the gut with little if any residue passing into the egg. These meds are used because there is little to no affect on the hen from the meds due to the difference in physiology between birds and worms.
So until I can find direct correlation between a worming medicine and poor hatchability, I can't say that worming medicine in itself is harmful to hatching eggs. On the contrary, a hen on a well balanced diet likely will benefit from worming to produce eggs with more nutrition than be hindered by the worm medicine itself.
I would be very interested in hearing actual results of studies for specific worm medicines for breeding flocks if anyone has any.
As a general rule of thumb, most of us prefer not to hatch eggs that potentially carry worming med residue, but I cannot say across the board that it would be harmful to do so.
LofMc