What would an ordinary, reasonable, prudent, person do?
If a traffic light isn't changing, I wait until it's safe and ride on. If that's against the law, I'm not going worry about it until after I'm cited.
Uh - That's what I do when I'm walking or driving my car too.