Section 8A. If it appears before final judgment or decree in any proceeding pending in a probate court that said proceeding was begun in the wrong county, said court may order the proceeding with all papers relating thereto to be removed to the probate court for the proper county, and it shall thereupon be entered and pending in the last mentioned court as if originally commenced therein, and all prior proceedings otherwise regularly taken shall thereupon be valid.