Transfer weight operator changes vertex groups
You can use the weight tool Clean to fix that. It will remove from the group, every vertex with a weight under the specified threshold.

To remove every vertex with weight 0, from each vertex group :


Subset : All Groups
Limit : 0