Update nesting indicator on close tab

Particularly crucial when you close the last tab, so it removes the nest
items of the last doc