[JIT] Torchbind error if python instantiate class that doesnt exist (#34568)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/34568
Test Plan: Imported from OSS
Differential Revision: D20378106
Pulled By: jamesr66a
fbshipit-source-id: 395a3b05d23727b9cfd074440b2d0e8ef002ec09