Consistency of error density and distribution function estimators in nonparametric regression