Fix errors saving a 2D scene preview when the 2D editor was never opened
Fix errors saving a 2D scene preview when the 2D editor was never opened

(cherry picked from commit e2b85b74a29e2a95c3d9c262e05bb4f166f45d26)

ex/godot,ex/godot,ex/godot,ex/godot,ex/godot,ex/godot,ex/godot,ex/godot