FIX: improve error handling
sortList -> sorted
Merge pull request #1740 from phicharp/Fix-OldRequestTaskAgent

[v6r9] Fix old request task agent
v6r9p29