Resync custom node defintion if it is updated before open .dyn file

To fix the issue that open a .dyf file firstly, modified it and open .dyn file which contains the corresponding custom node instances, but those instances don't updated to reflect the latest change.