[libvirt] [PATCH v2 1/2] Add check for params, nparams being a dictionary