Fix crash in correlations with empty dataset.