fixed segfault issue on null dummy model pointers for resources created in SimInit.