The fact that some other human makes a decision to violate the law does not make you a criminal, and the problem with that law is that it views every protestor with criminal suspicion, so while rioting is not protected, the problem with that bill is it took every protester and rounded them up to a rioter effectively if one person makes the choice to break the law.