check that exception messages are not empty (#22379)

Patch by Yongzhi Pan.
diff --git a/Misc/ACKS b/Misc/ACKS
index c13e4cd..c91d643 100644
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -1010,6 +1010,7 @@
 Todd R. Palmer
 Juan David Ibáñez Palomar
 Jan Palus
+Yongzhi Pan
 Martin Panter
 Mathias Panzenböck
 M. Papillon