Issue 10098 - byLine should return empty string instead of null when line is empty

http://d.puremagic.com/issues/show_bug.cgi?id=10098

The use-case is in the unittest.