Issue #3266704 by MegaChriz: Fixed PHP 8.1: do not pass null to Html::escape() and Unicode::truncate().