Data: fix for get metadata on dataset when its missing on data