Fixed a null reference by surrounding the call with a check.

Change-Id: Ib9f0e85c1fe26e7a1a1efd02000be4a9240e6ff5
Merge topic 'vtkweb-add-zoom-pan-catalyst-viewer' into master

119cc10d Fixed a null reference by surrounding the call with a check.