avoid NPE when an exception with no message is caught on class instantiation. fixes #265