Fixed `ExtensionTest/CocoStudioComponentsTest` crash after applying PR #6011.
Merge pull request #6042 from dumganhar/develop

Fixed `ExtensionTest/CocoStudioComponentsTest` crash after applying PR #6011.