Fix loading levels longer than 100 lines
Fix crash introduced in 7f825d0 when pathfinding fails