Panel: Bail upon opening animationComplete() if the panel has closed

Panel: Hook up animationComplete() to the wrapper, not the element
Panel: Bail upon opening animationComplete() if the panel has closed
    
Fixes gh-7236