Fix ValidatorParser in symfony 2.5

Fixes #373

Necessary because of changes made in https://github.com/symfony/symfony/commit/9b204c93544532ebac27e6b500de22a2599fab7e