adjust ErrorElement for symfony 2.5
Merge pull request #2186 from dbu/backport-2.5-fix

adjust ErrorElement for symfony 2.5 - in sonata 2.2 branch