Fix TestUserShader2D
Add timer observer only in interactive mode, otherwise the shader could produce a different image from the baseline in case the timer fired before vtkWindowToImageFilter captured a screenshot.
backport: paraview/release
Edited by Jaswant Panchumarti (Kitware)