adjust ErrorElement for symfony 2.5
Merge pull request #2027 from dbu/patch-4

adjust ErrorElement for symfony 2.5