The anomalous Hanle effect in semimagnetic semiconductor quantum wells