attached to a framebuffer or vice versa. might be more correct to just handle the case and unbind here.
ED_vgroup_object_is_edit_mode()