fix missing layers when exporting a full repository 

There is a bug in the 'skip' decision when exporting a repository (`docker save repo`)

Only the layers of the first image are included in the archive (the layers of the next images are missing)