Added check for null instance of vtkMatplotlibUtilities

This prevents a crash if matplotlib is not available on the system.

Change-Id: Ie371c3d6a44addd09f86fbd9323cc99221e0454b