How did this capacitor survive having a nail driven through it?
Film capacitors can “self heal” from certain kinds of shorts by burning away a bit of film in the short. The film is so thin that bits of it can act as localized fuses. I imagine that’s what happens to all the places where the film electrode touches the nail. 

For more, see https://ec.kemet.com/self-healing-capacitors-fix