Workaround for bug in wtd.quantile when weights are integer