diverse: prevent NPEs during exception handling using `e.getMessage`