Section 4. A divorce shall not, except as provided in the following section, be adjudged if the parties have never lived together as husband and wife in this commonwealth; nor for a cause which occurred in another jurisdiction, unless before such cause occurred the parties had lived together as husband and wife in this commonwealth, and one of them lived in this commonwealth at the time when the cause occurred.