Issue #5704: CCUIPreformance - Fixed a bug about customWidget

Issue #5704: CCUIPreformance - Fixed a bug about customWidget