Fixed the retrieval of the validation MetadataFactory

The service is private so getting it from the container get() method is invalid and it does not work anymore in Symfony 2.5 because the service gets inlined.