ParticleSystem->totpart sometimes reports more instances than actually exist. For example if a texture is used to drive particle density influence.
This results in extra polygons win NAN positions.
This patch skips "unexisting" and "no display" particles.
I attached a file to reproduce the issue. If you disable the density influence and then reenable it, the scene tri count doesn't shrink.