Fix NPE when removing tabsheet (#13402)

Change-Id: Idc78fc1bc6380d7bfada99f1efe2484b04ce3c74