Fix crash bug with directionless stairs.
Added test (never run)