Yes, this happens a lot, especially to power transistors. Sometimes you even see legs that are extended and it is not very noticeable without examination.
Given that stock ICs are coated, there must be industrial machines for that. In a less industrial environments, I've seen people dip the IC into a solder bath and use air gun to blow away the excess. But this is only viable if labor is virtually free and components are expensive.