Even if these women were living in an invalid marriage, for all we know (and for all the woman who told them off knows), they could have resolved to live as brother and sister with their “husbands” (as it is my understanding that this often happens when there are children in an invalid marriage, and it would be harmful to the children to separate), and be on the way to confession to confess this very sin. If a person is unable to receive absolution, that is up to the priest to decide, not an usher who hasn’t been given a window into the disposition of the penitent.
The only time I could view this as remotely appropriate would be if a person was waiting in line for confession and specifically said, “I’m not sorry for sin x, but I’ll confess it, so I’ll be forgiven.”