Fix rope.lua bug

Fixes issue #529 which occures when there is no ground tile.