NaN as points or cells coordinates do not make sense. Just remove the points or the cells in that case.
As @ken-martin stated, I’m talking about PointData and CellData that can have missing data. Missing data should use NaN and should be supported as best as they can be. If they are not, it should be considered an issue. There is already a few issues about that in VTK and ParaView bug trackers.