Fix bug with certain kinds of indentation.

Certain indentation situations cause valname-string to be nil, which haskell-trim does not handle gracefully (naturally, since nil != "").