Description
TabPaneSkin keeps reference to previously selected Tab in previousSelectedTab field. The problem is that this reference is kept in case that the closed tab was the last one (the only strong reference to closed Tab is from TabPaneSkin).