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