ONEWAY: fix crash in contrasts when dataset is empty