Man jailed for drugs, but tests show substance was vitamins