Handle the case where all variables have been removed and the dataset returned by r_remove_... is NULL