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

[v6r9] Fix old request task agent
v6r9p29
v6r10-pre18
Conflicts resolved with rel-v6r9