Corrected return value of logging.getLevelIdx() when the level isn't recognized.