Fix and test for "panic: runtime error: index out of range for" lines that contain just a \n
Merge pull request #1 from bensallen/master

Fix and test for "panic: runtime error: index out of range for..." caused by lines that contain just a \n