Id2Path: Fixing list CLI tool.

Fixing the crash for a passed invalid ID.