Fix panel inconsistency that could lead to crashes. Closes #2422267.

1 file changed