HPCC-11287 Avoid including files in query hash if package resolves everything

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
Merge pull request #5811 from richardkchapman/compulsory-query-hash

HPCC-11287 Avoid including files in query hash if package resolves everything

Reviewed-by: Gavin Halliday <ghalliday@hpccsystems.com>