fixing bug where brem var was NaN which causes out of bound array accesses.
Merge pull request #5959 from Sam-Harper/EGM72XEUncertaintyFix

fixing bug where brem var was NaN which causes out of bound array access