Fixed assigning null to directx.ComRef