Section 10. If any person residing and intending to continue to reside in this commonwealth is disabled or prohibited from contracting marriage under the laws of this commonwealth and goes into another jurisdiction and there contracts a marriage prohibited and declared void by the laws of this commonwealth, such marriage shall be null and void for all purposes in this commonwealth with the same effect as though such prohibited marriage had been entered into in this commonwealth.