The first fix [168b6715] did not work properly, so I have reverted the changes.

The second fix [168b6715] now is setting currentIndex before NotebookPlaceSlave() will be invoked, due to my analysis this can have only one side effect: an interveaning call of NotebookPlaceSlaves() will change to the correct tab.