One infamous episode nearly wrecked Lost — and ultimately helped change the course of the entire sci-fi series.