Fixing emitter bugs when frameindex is outside the bounds of frame. Also, when creating a new particle type with no frames array, assume [0] - an empty array will crash on render.