Return nil if the line is nil
Merge pull request #883 from mattsp1290/master

Return nil if the line is nil