Hmm. I just tried replicating this with no success :-/ Did this happen only once, or if you re-assign the component it always gets lost?
I would also recommend to please update to the latest NodeCanvas version since there was an edge case fix for something similar, which might be just the case here as well.