Simple. Anyone caught doping doesn't lose their medal.

Instead, someone else in the squad loses their medal or gets disqualified.

In the following order:

Boxing, judo, shooting, taekwondo, wrestling, weightlifting, fencing.