Emit warning instead of failing on invalid YAML header.