Fixing error handling in RestCommandLineService.executeList()