(2)Subsection (1) does not apply where the person already having custody is a parent of the child and the person who becomes custodian under the order is the husband or wife of the parent; and in such a case the spouses have the legal custody jointly.