Adjusted ErrorElement constructor to accept the interface of ExecutionContext to support legacy code in Symfony 2.5