[FrameworkBundle] Fixed the registration of validation.xml file when the form is disabled