[libvirt] [PATCH 2/2] qemu: monitor: Make qemuMonitorAddObject more robust against programming errors