Cherry-pick !1788 in v30r6-patches
Corrected a rare instance of segmentation fault due to chi2 being rigourously 0
See merge request !1788 (merged)
(cherry picked from commit 5d6af5e9)
Corrected a rare instance of segmentation fault due to chi2 being rigourously 0
See merge request !1788 (merged)
(cherry picked from commit 5d6af5e9)