Handle exceptions with null messages.