allocate space for remove tabs lazily (IDEA-108521)
(cherry picked from commit 8531dc4) [r=Konstantin.Bulenkov]