[gnl] Fix issue #23: Test when get_next_line returns 0 #23