Fixes a bug in MedianDetectorTest with levelsUp=1. Refs #6662
Merge branch 'bugfix/6662_MedianDetector/master' into develop