For ENG-5962, fix NPE on exceptions with no message