[NUI] Add try-catch block in New function (#2119)