PERF: be robust to NAs in cv