While in weight paint mode, `ob.vertex_groups.active` can be None. This happens when selecting a non-deforming bone, or a deforming bone that doesn't have a group yet. Now check for this. Pull Request: https://projects.blender.org/blender/blender/pulls/115666