REST API returns traceback fix

Fixes: bug #1200245

Change-Id: Ie23e1d6910892c55f729153cf5a3b238a4d3c605
Merge "REST API returns traceback fix"