FORGE-2046: Fixed ls output when resource is not found