Ben Affleck thanks “co-parent” Jennifer Garner for supporting him through rehab