Leonard Bernstein's final stage work marries a strong score with a flawed libretto. Nevertheless, it's essential viewing for musical theater lovers.