Issue #5781: Fix Cocostudio Scene test crash issues