fix: when use different count custom properties in CocosBuilder will get...

... wrong custom properties in game


Same as #4168, on master branch