Pope St. John Paul II may have spoken, but it is NOT DOGMA.  For something to become a dogma, a pope needs the votes of all the bishops of the world.  This did not occur---and the case isn't closed.
Women deacons in the ancient days were able to both baptize AND anoint.  From the most important liturgical document of the early Church, the "Apostolic Constitutions' we read:
"Ordain also a deaconess, faithful and holy, for the services pertaining to women, for whenever the bishop cannot send a male deacon to certain women's household because of the unbelievers, you shall thus send a woman deaconess, because of the suspicions of wicked people.  For we require a woman as deaconess for many needs.  First of all, in the baptism of women, the deacon shall anoint only their foreheads with holy oil and after him the deaconess shall anoint them, for there is no need for women to be observed by men."
-------Apostolic Constitutions III.16; trans E. Clark,[Collegeville: The Liturgical Press,1984]