add safe guard when remove component from node componentContainer
Merge pull request #7679 from andyque/fixComponentContainerRemoveIssue

add safe guard when remove component from node componentContainer