Notwithstanding that a child marriage has been annulled by a decree of nullity under section 3, every child begotten or conceived of such marriage before the decree is made, whether born before or after the commencement of this Act, shall be deemed to be a legitimate child for all purposes.