Fix SceneStructureWindow/SceneTreeWidget/UndoManager null pointer access.
SceneStructureWindow::SetScene: set scene member variable properly to null if null scene pointer is deliberately passed.
UndoManager: Fix crash bug(s). Dont delete view if its parented, it will be taken care of later. Disconnect and destroy stack, for some reason it was firing signals after/while dtor.