Panel is null if disabled (related to issue 6876)