HPCC-9223 Improve error message when there are no active packages

Improve the tracing and the error reporting related to active packages and in
particular, the behaviour when there are no active packages.

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>