fixes error handlint of retrieve_id()

Signed-off-by: Kouhei Maeda <mkouhei@palmtb.net>