Were you aware that you were approaching a set of traffic lights? If so, and you couldn't see them, you should have waited until the traffic cleared so that you could. What you seem to be describing is a situation where you continued to press on, even though you could not tell whether it was safe to do so or not. A court might see it that way too, unless you can convince them otherwise.