Disorder effects in the anomalous Hall effect induced by Berry curvature