display id in metadata when unique id is not available

Signed-off-by: Blaise Fonseca <blaisefonseca@hotmail.com>