Fix regression in GenericBaseRecipe.generatePassword