fix #542

This PR will try to retrieve the `latest` tag. If that fails (i.e. no build was created before this release was published), we will attempt to create a `v0` layer that acts as an empty placeholder for metadata. The initial config will still result as `v2` on the registry.