HPCC-8737 Roxie loses queries it it starts before dali is ready

If roxie starts before Dali is ready, it loads queries from cache (correctly),
but will then get an empty query set if it subsequently manages to connect to
dali.

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>