display: Fix invalid panel state after canceling changes
When switching from Mirror mode to Join mode and opening a monitor leaflet child by clicking its row, clicking Cancel on the title bar would get the UI into an invalid state.
Closes #2513 (closed).