The path cache's are turned on in the GIF so you can see that the power pole is obstructing the path.
I think this is worthy of being a bug as with this behaviour it can knock the power out from entire sections of a map and turreting entire railways isn't really viable.
I have no idea of the internal workings but perhaps something like making path cache's move a few tiles away from power poles if there is free space?
