[PATCH v2 1/1] virsh: prevent potential NULL dereference