li: don't forget to return the value for `undefined'

Also fiddle with end-of-sentence spacing for the sake of consistency.