Revert "[aot] Improve error checking when setting up class vtable."