fix bug in generating masks from conditions due to NaN in series
`xt::median` and `xt::quantile` are not NaN-proof, and do not have equivalent NaN functions (like `xt::mean` and `xt::nanmean`) so it required a filter to drop the NaN before computing the corresponding condition value