BUG:11947 plug memory leaks in vtkSelectPolyData exceptions

Thanks Xabi Riobe for the patch.

Change-Id: Ie1fe74a12a67234c752fd02263c6d5df7b759d4b
Merge topic '0011947-selectpolydata-mem-leak' into master

a9743934 BUG:11947 plug memory leaks in vtkSelectPolyData exceptions