If nuclear war breaks out, it will be sad, we will lose a lot of our population, and cities will be destroyed, but I do not think a nuclear breakout will result in the death of humanity. I cannot see a realistic war scenario in which we will destroy every habitable corner of the planet.
And if we can cure cancer in the next 50 years (I think realistic), we'll have even better odds of surviving an event, as a species.