[libvirt] Fix virGet{User, Group}IDByName when the user/group cannot be found