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 [here](http://d.puremagic.com/issues/show_bug.cgi?id=10098#c0) and also in the unittest.