this prevents crashes when deleting panelviews and the call chain coming back to m_panelView (cherry picked from commit 3a4b85fc)