closed #4573: Set particle visible to false then set to true cause crashes.
Because of the update order, _particleIdx may equal to zero.
closed #4573: add ParticleVisibleTest.
Merge pull request #6032 from boyu0/4573_Particle_setVisible_crash

closed #4573: Set particle visible to false then set to true cause crashes.