[libvirt] [PATCH v2] Resolve FORWARD_NULL errors found by Coverity