I've had that happen to me as well.
Me, pedaling down a downtown alley with a green light.
Him, riding on the sidewalk against the light.
Once again my mad skillz save the day