OK, but the docs says "Modifying the packing of the tab label is a deprecated feature and shouldn't be done anymore."  So the real fix is to remove this code altogether IIUC.