fixed a crash when moving tscn file together with its dependencies
Partially solves #26394
Seems like the Node passed at editor/editor_node.cpp:2923 was becoming garbage when the message queue was flushed.
I am not sure this is the correct fix. Feedback (and testing!!!) is welcome, but it seems to fix the reproduction MRP with the images being moved.