Refs #9196. Making helper for special value checking and using it.
Merge remote-tracking branch 'origin/feature/9196_filter_infs_vtkfactories'