Trying to analyze potential scenarios and what-ifs can be tricky, because there are so many possibilities. A lot of it is going to depend on the prosecutor also. Who is probably going to say that in this case you could have simply put the car in gear and drove away.
However, if you were walking on the side of the street and the same situation starts happening...well that's completely different.