correctly detect empty/nil salt values

addresses invalid use of String#empty? on nil salt objects