In the scene where Brandy's father gets his foot stuck in the rail, when the camera zooms out, you can see that the rail switch is a hand-throw switch, which means the switch cannot automatically be lined, therefore his foot could not have been caught. Someone would have to personally line the switch.