HPCC-10638 WsWorkunits::WUInfo cores for workunits with no query

Signed-off-by: Anthony Fishbeck <anthony.fishbeck@lexisnexis.com>
Merge pull request #5276 from afishbeck/getResourceListCore

HPCC-10638 Fix WsWorkunits::WUInfo core for workunits with no query

Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>