We used to get a warning that if you cut through something like a metal conduit alongside an AC electrified route a dangerous voltage could appear between the two halves, so you should electrically connect them by attaching a wire before making the cut.
This is, I guess, because some of the traction return current flows through the earth around the conduit, by a mixture of leakage and induction, so there will be a voltage gradient through the earth. As the conduit is a better conductor than the earth, the two halves it will be at the same potential as the earth some distance away in each direction so the difference will be large.
Electrically connecting the handrail on each side of the crossing will avoid a similar hazard if someone could touch both at once. This is as well as the various other hazards mentioned above.