Fix ATLASDQ-1070 in 23.0

Adam Edward Barton requested to merge cherry-pick-8ca8d306 into 23.0

This was merged to master but should have been targetting 23.0

DataQualityUtils: Bug ATLASDQ-1070 fixed.

See merge request !63260 (merged)

(cherry picked from commit 8ca8d306)

8bc05df8 Bug ATLASDQ-1070 fixed.

Merge request reports