Issue #3541059 False positive "mappings defined at top level" error triggered unconditionally in ElasticSearchDatasetPipeline constructor
Add a check in the constructor to detect if top-level mappings are actually set and destinationSettings.elasticsearch.mappings are empty before triggering the warning.