Added NaN checks for Particle Designer compatibility (see PDParticleSystem for more info)