A building almost collapsed in Manhattan. The backstory is surprisingly hopeful.