PHP8.1. Deprecated: htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated