avoid pushing layers which already exist in registry

The RepositoryData returned in PushImageJSONIndex does not contain any image data. This is why every time we push to a registry all layers are pushed again and again.