SP-997:

- Fixed bug where if close sub tab it clears all sub tabs and content
  and the content of the main tab that contains the subtabs