Acts 16:31
And they said, Believe on the Lord Jesus Christ, and thou shalt be saved, and thy house.
Yeah, it's not the baptism it's the faith in Jesus that saves you. Baptism is the first command. As a fulfillment of that command and as an outward expression of faith, I'd say that was accomplished regardless of the priest's error.