HPCC-10638 Fix WsWorkunits::WUInfo core for workunits with no query

Signed-off-by: Anthony Fishbeck <anthony.fishbeck@lexisnexis.com>