Cherry-pick "fix reading of histogram for single-frame volumes" into 2024.1
cast-volume: fix reading of histogram for single-frame volumes
See merge request !446 (merged)
(cherry picked from commit ed545485)
854566fd cast-volume: fix reading of histogram for single-frame volumes 70d11709 cast_volume: find_histogram: simplify code 71cfeeda cast-volume: fix test since find_histogram has been updated