People's rights get violated all the time. All i know is what the federal law says and almost all states have it the same with regard to the weight of the mixture. The added weight of any bottles and bags are not mentioned in the Controlled Substances Act or in the federal sentencing guidelines.
Either there was inadequate legal counsel ... or the state in which it occurred has a paraphenalia law where they're allowed to add in the weight of the plastic bag enclosing the drug. You'd need to look up that state's laws. Appeals are expensive but it might be worth it.
Anyway, a plastic bottle is not the same as a plastic baggie. I said, "weight of the bottle."