Fix: dataset_repr was failing on empty datasets.

BUG: dataset_repr was failing on empty datasets.