Raise a managed exception if the Class was not found during construction.

Previously the Id constructor might send a null pointer through SendMessage which was harder to debug.