[libvirt] [PATCH v2 03/11] virDomainObjIsActive: Allow vm->def to be NULL