Fix trying to set grid visibility on an invalid instance
Fix trying to set grid visibility on an invalid instance

(cherry picked from commit 8c1d94ebae2eb5f8563c40754ce1ceed04f05978)

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