Fixed compatibility with symfony/validator v2.5