views: return more expressive error from lookupId

Catch the exception and return the exception string.

Signed-off-by: Ashok Gautam <ScriptDevil@gmail.com>
Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>