bugfix: linewrap was choking on nil lines for some reason

I put in checks which solve the problem, but I'm not really sure I
understand why it was happening.  The problem arose when I tried to
paste in text from a webpage with linewrap turned on.

	modified:   editor.rb