Fix defect: handle missing values for quantile calcs