Fix NullPointerExceptions on OS X/Java 1.8 (handle null return from JTabbedPane.getBoundsAt(int))