if line is blank don't return the end of line characters

This fixes and issue when dealing with empty lines in stream. If your data has "line1\n\nline2" before this patch it would return "line1", "\n", "line2". This patch changes this behavior to return "line1", "", "line2"