fix possible null ptr use in C3DRenderNodeManager::createResource()