Fixed crash when taking a pipe to a level without a corresponding pipe.