Fix crash where vtkColorTransferFunction has 0 nodes
Thanks to Jean-Christophe Fillion-Robin for pointing this out.
See
for reference.
A basic test for vtkColorTransferFunction is added that crashes prior to this patch and succeeds with this patch.
Tested-by: Jean-Christophe Fillion-Robin jchris.fillionr@kitware.com