It sounds like you felt frustrated in the moment, but it's important to remember that you did say something. Your response was both empathetic and humorous, and it is understandable that it helped to lighten the mood. Even if it wasn't the most helpful response, you did recognize that the situation was "unfortunate" and that is not to be disregarded.