Update `OriginTrackedYamlLoader` so that empty objects are retained in the resulting `PropertySource`. Closes gh-48958