bug #459 Do not throw exception when _template is not an @Template (wouterj)
bug #459 Do not throw exception when _template is not an @Template (wouterj)

This PR was submitted for the master branch but it was merged into the 3.0 branch instead (closes #459).

Discussion
----------

Do not throw exception when _template is not an @Template

Currently, when the `_template` request attribute is set, this listener will throw an exception. I don't see why it should throw an exception, returning is enough to not continue.

This will allow other bundles to work with `_template`. For instance, the CmfRoutingBundle uses the `_template` attribute for it's `template_by_type` configuration (which renders a template based on content type). We currently have to do some black magic to rename `_template` to i.e. `contentTemplate` in order to avoid getting this exception.

Commits
-------

5679883 Do not throw exception when _template is not an @Template

sensiolabs/SensioFrameworkExtraBundle