[FrameworkBundle] Fix a BC for Hinclude global template
merged branch vicb/hinclude/global_template (PR #7119)

This PR was merged into the 2.2 branch.

Commits
-------

171cff0 [FrameworkBundle] Fix a BC for Hinclude global template

Discussion
----------

[FrameworkBundle] Fix a BC break for Hinclude global template

@fabpot should the one who broke BC write a UT for this ? (I won't have time in the next few days).