Fixed the ESI render example code to work with symfony 2.1

| Q                | A
| ----------------- | ---
| Doc fix?      | yes
| New docs?  | no
| Applies to    | 2.1
| Fixed tickets | #2303

First time doing this so I hope its ok.