Check for tab container existence, see ROOT-6253.

(cherry picked from v5-34-00-patches commit 05790b6f1f099c1aa43f5146d4c08bff2612adf0)