Set the internal pointer of a scene node object in the scripting environment to nil when it is deleted.

This prevents some annoying crashes as a result of deleting a parent and then later attempting to modify a child.