Re #9866. Fix a cppcheck warning.
Merge branch 'feature/9866_mdhisto_to_matrix' into develop