In older BuildKit versions snapshotID was not always set if record
was not created with GetByBlob method. Old code defaulted to cache
record ID in that case but that broke with the metadata interface
refactor.
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>