Issue #3238452 by alexpott: Exception messages must default to an empty string not a NULL for PHP 8.1