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>
Merge pull request #4435 from richardkchapman/no-active-package

HPCC-9223 Improve error message when there are no active packages

Reviewed-by: Gavin Halliday <ghalliday@hpccsystems.com>