The Thomist answer appears to be men can be dispensed from their marriage vows in some particular situations. (Suppl. Q67 A2+) women too, but he doesn't quite say that.
It is probably not from Aquinas himself, and many Thomist's would not follow it, but it is vertainly a Thomist position. (It is probably not what Francis is refferring to either.)