pitch_detector: avoid a division by zero when changing 'lowest frequency' setting