Avoid setting null shader in PolyDataMapper
vtkPolyDataMapper assume the shader to be not null. Adding a sanity check to avoid setting a null shader and segfaulting down the line.
Edited by Mathieu Westphal (Kitware)
vtkPolyDataMapper assume the shader to be not null. Adding a sanity check to avoid setting a null shader and segfaulting down the line.