Add check for InvalidYamlFile