Fixed handling of bad YAML.