I know folks on HN like strict interpretations and reasoning of what's legal or illegal, but all of that gets very blurred during a riot when the situation at any given time is on the verge of getting out of control. It just isn't time for a high-school forensics debate when people are in riot gear.
If a group of highly armed police or military are marching through your street and demanding you go inside--- it's probably better to GO INSIDE at least until they're gone.