A sensitivity analysis for Bayesian nonparametric density estimators