Potential NPE in TabbedPanel, Fixes #4