[NUI] Fix svace issue of dereferencing possible null handle in TextUtils