Fixes issue #4780 - Immovable rod final destination

Fixes issue #4780
Immovable rods end destinations will be at the edges of the map.