The comedian and his better half (also his co-writer and the co-creator of their five children) talk about how their lives changed in the face of a frightening medical emergency, and how humor helped get them through it