Fix PHP Fatal error when validating CSRF token on a form bound with a string

@see https://github.com/symfony/symfony/pull/7136