Fix pipeline code that required VTK 6.