BUG: fix crash when scene view added without screen shot

When saving a scene with the Scene Views module open, a null
pointer crash happened because the qSlicerSceneWriter was adding
the scene view node to the scene before capturing and setting
the screen shot. The mrml application logic does the same thing.
For now, avoid the crash by checking the pointer. The
thumbnail immage will appear on the next update, but since the
mrml scene isn't invoking an event when it's finished the
Commit call, the module will have to in future observe scene view
nodes for modified events to detect that a screen shot has been
added to the node (and if there have been other updates directly
to the node rather than via the GUI).

Issue #1299



git-svn-id: http://svn.slicer.org/Slicer4/trunk@23213 3bd1e089-480b-0410-8dfb-8563597acbee