The survival value of humor is in giving us a way to cope with situations so bad that we might not be able to contemplate them and stay sane without it. People who get huffy when other people make jokes about the really terrible aspects of life are missing the point of what jokes are for.
In my opinion.
Peter.