Issue #2302867 by DamienMcKenna, Andrew M Riley: has_default_panel() did not check if a default display existed, and related regressions.