Fixed AnimationManager.add() default for 'frames'

AnimationManager.add() documentation said that 'frames' could be null, but the code couldn't handle this.