Fix for metadata assuming `layers` always exists for dataset_layers interface