I trust you know what the 'small hard bits' are.
If you buy shellac, flake or otherwise, from a reliable source, not trying to get the lowest price possible, you should not find any 'small hard bits'. Even now in 2017 those bits, which are not at all healthy in concentration, may be found in shellac as it arrives from Asia.
Shellac is a product of the Lac beetle. Look it up. Wikipedia has a long article on the subject. The process is not exactly as that article says. If you watch the process at first hand, at least in the former colonies of the Raj, the deposit is not scraped off but the twigs are / were heated by villagers over an open flame. The lac melted and was colected in bowls. Subsequent processing is used for purification.
Latterly the process has been updated as the producer countries have industrialised.
Shellac is used in and on foods! Price is a good indicator of quality.
Jerry