I think it is an old wives tale. I have messed with lights and tried to make stressed plants so they will produce pollen. A simple cell phone light for a few minutes will not have effect.

First, you did not ruin your garden, you will have some seeds to work from, and maybe they crossed with another plant in the flower room and you could have a really neat cross (happened to me on occasion).

What does stress plants is..........
Too much fertilizer
Too much water
Too cold
Too hot
Not enough ventilation.
Changes (significant) in the full light pattern.

This sounds like a stress situation to me. Take advantage of it and harvest the pollen and do some crossing. Turn this into positive instead of freak out. I reckon I read somewhere that genotype is unstable and has the tendency to go intersexual, not quite a true herm.