[FrameworkBundle][Template name] fixed "the template format is invalid."

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Fixed tickets  | #12249 
| Tests pass?   | yes
| License       | MIT