qemu: agent: use GetArray to remove a check
qemu: agent: use GetArray to remove a check

The error check for ValueObjectGet("return") is redundant,
qemuAgentCommand already checked for us that the reply contains
a "return" object.

It does not guarantee, that it is an array.

Use virJSONValueObjectGetArray that combines getting the object
with checking for its type and return the more helpful of
the two error messages.

Signed-off-by: Ján Tomko <4cab11cfb98d3c937327354a78eb07dbb6ee2bc6@redhat.com>
Reviewed-by: Jonathon Jongsma <c7254805a17bd5c41e24c3a278fcbf3afcdfb0fa@redhat.com>
Reviewed-by: Neal Gompa <8135daa3762340227c0c67f1c47ad07a127bd3a3@gmail.com>

jardasgit/libvirt,jfehlig/libvirt,jardasgit/libvirt,jardasgit/libvirt,jfehlig/libvirt,jardasgit/libvirt,zippy2/libvirt,crobinso/libvirt,nertpinx/libvirt,crobinso/libvirt,nertpinx/libvirt,olafhering/libvirt,nertpinx/libvirt,jfehlig/libvirt,jardasgit/libvirt,libvirt/libvirt,zippy2/libvirt,libvirt/libvirt,crobinso/libvirt,libvirt/libvirt,libvirt/libvirt,zippy2/libvirt,olafhering/libvirt,crobinso/libvirt,nertpinx/libvirt,jfehlig/libvirt,olafhering/libvirt,olafhering/libvirt,nertpinx/libvirt,zippy2/libvirt