Topological response of the anomalous Hall effect in MnBi2Te4 due to magnetic canting