storage: fix crash when listing volumes or undefining a pool
storage: fix crash when listing volumes or undefining a pool

The commit cad3cf9a951d26da9d2ee0f5b52fb1a2dbb74af1 introduced a crash
due to wrong order of parameters being passed to the function.  When
deleting an element, the function decreased the iterator instead of
count and if listing volumes after that (or undefining the pool, NULL
was being dereferenced.

Signed-off-by: Martin Kletzander <e82f23e74d43760279ebcc505dac4ae70d5627d0@redhat.com>

VenkatDatta/libvirt,jardasgit/libvirt,eskultety/libvirt,andreabolognani/libvirt,taget/libvirt,jardasgit/libvirt,agx/libvirt,nertpinx/libvirt,nertpinx/libvirt,jfehlig/libvirt,agx/libvirt,fabianfreyer/libvirt,elmarco/libvirt,rlaager/libvirt,fabianfreyer/libvirt,elmarco/libvirt,andreabolognani/libvirt,libvirt/libvirt,datto/libvirt,VenkatDatta/libvirt,fabianfreyer/libvirt,shugaoye/libvirt,eskultety/libvirt,libvirt/libvirt,taget/libvirt,andreabolognani/libvirt,olafhering/libvirt,jardasgit/libvirt,crobinso/libvirt,libvirt/libvirt,rlaager/libvirt,shugaoye/libvirt,zippy2/libvirt,rlaager/libvirt,olafhering/libvirt,elmarco/libvirt,agx/libvirt,andreabolognani/libvirt,rlaager/libvirt,datto/libvirt,jardasgit/libvirt,VenkatDatta/libvirt,fabianfreyer/libvirt,jfehlig/libvirt,datto/libvirt,agx/libvirt,jfehlig/libvirt,nertpinx/libvirt,nertpinx/libvirt,zippy2/libvirt,jardasgit/libvirt,fabianfreyer/libvirt,crobinso/libvirt,shugaoye/libvirt,VenkatDatta/libvirt,eskultety/libvirt,jfehlig/libvirt,datto/libvirt,agx/libvirt,datto/libvirt,VenkatDatta/libvirt,crobinso/libvirt,olafhering/libvirt,libvirt/libvirt,eskultety/libvirt,rlaager/libvirt,shugaoye/libvirt,zippy2/libvirt,shugaoye/libvirt,elmarco/libvirt,eskultety/libvirt,nertpinx/libvirt,taget/libvirt,taget/libvirt,andreabolognani/libvirt,crobinso/libvirt,zippy2/libvirt,elmarco/libvirt,olafhering/libvirt,taget/libvirt