Absence of Weyl nodes in EuCd2As2 revealed by the carrier density dependence of the anomalous Hall effect