function checkAnimationShouldBeStopped(animation, queueName, defaultQueue) {
    validateTweens(animation);
    if (queueName === undefined || queueName === getValue(animation.queue, animation.options.queue, defaultQueue)) {
        animation._flags |= 8 /* STOPPED */; // tslint:disable-line:no-bitwise
        completeCall(animation);
    }
}
Check if an animation should be stopped, and if so then set the STOPPED
flag on it, then call complete.