[Mac] Drawing QTabBar without actual object crashes on Mac

[ci skip]