Backport fix for http://vtk.org/Bug/print_bug_page.php?bug_id=14326