So command _PEDIT can't join them, command _JOIN thinks that is different Z-information, so it creates a SPLINE thinking that is geometry free in 3D space. I don't see any fast option (which has to recreate the polyline in the "other" coordinate system) besides of recreating the view...