adjust ErrorElement for symfony 2.5