bpo-44483: Fix crash in union object with bad ``__module__`` (GH-26848) (GH-26852)

(cherry picked from commit adfa1ba398c74720b42f16f06fd3ec0353599fa5)

Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
3 files changed