add safe guard when remove component from node componentContainer