Collapse the separator also when there's no panel or no current object
to display