zincwarrior said:However a change limiting the defense to those who are not engaged in criminal activity at the time would be generally sufficient.
I agree the law needs such a chage, but how would that have changed the outcome of this case?
If there had been sufficient evidence to charge prostitution or solicitation of prostitution, the charge would have been brought. Without evidence, all there is is speculation. Speculation is not sufficient to bring charges. If the defendant was not charged with another crime, then the preclusion you seek would not apply and the result would be the same.