Fix opening system tabs from tree menu

The bug oocurs when they are already open.