D-brane anomaly inflow revisited