Yes it was a mistake.
Why defoliate?
What for??
All of the plants energy to grow is made by/in the leaves.
Less leaves = less energy being made = less potential growth.
The plant was relying on those very leaves to make the energy required for flower growth.
Too late now.
If you are unsure, ask first then act, not act first then ask if it is ok.
Flowering in autos has nothing to do with defoliation, it is all age related and it is just coincidence that this occurred at the same time.
Also, pre-flowers is not flowering, only an indication that flowering is about to commence.
Flowering proper, starts about 2 weeks after the first pre-flowers appear.