[runtime] Use MonoError for mono_type_get_object