This function checks data.idjudge_ref and data.class_labels If both don't have a nice value, an error is thrown.