Fixed use cases when the next panel in the DOM is not a panel, but the panel is nested inside the next element from a panel with a data-intent of next