fixed an issue when calling gotoAndStop(animation) in the animationend event stack for the same animation

Signed-off-by: Grant Skinner <info@gskinner.com>