[NUI] Add back trace and debugging msg when SwigCPtr is null