Fixing bug on AnimationModifyUndoTask that caused a crash