Better error checking in ParticlesEmitter