I think the court erred in this case, either that or the state’s attorney was a total dumba$$ and didn’t present his case very well.
The court woild have ruled the other way if the perp had been caught with more drugs, if that’s any consolation.