Filter using boolean instead of extra trim passes

I noticed you are using the result of re-trimming every line to filter out blank lines. Using `Boolean` to filter more directly seems like it would be a bit more efficient, and arguably communicates the intent a bit better.

(Cross-reference: https://github.com/tessel/runtime/issues/678 needs to get fixed but, not coincidentally, can be worked around via this PR too ;-)