[BUG][Form] Fix nonexistent key id in twig of data collector

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

When you create a single button form type, the id of data collector does not exist. It's caused by the PR #9394.