lxc: Fix lxcDomainDestroyFlags endjob processing
lxc: Fix lxcDomainDestroyFlags endjob processing

Commit id '15ccb0dbf' added job functions for the lxc driver; however,
for shutdown and nonpersistent path, the vm was removed from the domain
object list and the vm pointer cleared before the endjob.

Adjust the code to perform the endjob first and then perform the
ObjListRemove as long as the vm wasn't NULL. This follows more closely
models from qemu and libxl

Found by Coverity (FORWARD_NULL)

eskultety/libvirt,eskultety/libvirt,jfehlig/libvirt,taget/libvirt,zippy2/libvirt,taget/libvirt,jfehlig/libvirt,fabianfreyer/libvirt,eskultety/libvirt,eskultety/libvirt,VenkatDatta/libvirt,fabianfreyer/libvirt,taget/libvirt,jardasgit/libvirt,zippy2/libvirt,nertpinx/libvirt,jardasgit/libvirt,VenkatDatta/libvirt,zippy2/libvirt,libvirt/libvirt,libvirt/libvirt,zippy2/libvirt,taget/libvirt,crobinso/libvirt,taget/libvirt,andreabolognani/libvirt,datto/libvirt,VenkatDatta/libvirt,olafhering/libvirt,datto/libvirt,datto/libvirt,fabianfreyer/libvirt,nertpinx/libvirt,crobinso/libvirt,nertpinx/libvirt,olafhering/libvirt,nertpinx/libvirt,datto/libvirt,andreabolognani/libvirt,jardasgit/libvirt,jfehlig/libvirt,andreabolognani/libvirt,andreabolognani/libvirt,jardasgit/libvirt,nertpinx/libvirt,libvirt/libvirt,olafhering/libvirt,jfehlig/libvirt,datto/libvirt,andreabolognani/libvirt,olafhering/libvirt,crobinso/libvirt,fabianfreyer/libvirt,crobinso/libvirt,eskultety/libvirt,VenkatDatta/libvirt,fabianfreyer/libvirt,jardasgit/libvirt,VenkatDatta/libvirt,libvirt/libvirt