Prior to this patch, if an element was removed multiple times (due to the nature of parent/child elements), the leave listeners may have been fired for an element that was already removed. This patch adds a guard within the animations code to prevent this. PR Close #40712