Anomaly evanescence and the occurrence of mixed abelian-non-abelian gauge symmetries