Fix elems.undefined error, which happens when destroyed panel continues to animate. -- This happened particularly in the domain section, when clicking to/from another section while the details panel was sliding in.