[Validator] Fixed: The state of the XML/YAML loaders was changed even if an exception was thrown upon loading