When restoring photo metadata from a sidecar YAML file, it should only be assumed that the photo has an existing UID after checking whether a non-empty, valid UID has been specified in the file. At a minimum, this could otherwise lead to incorrect log messages and thus cause confusion.