minor fix for empty list in get_lines

hi, i'm back again. enclosed minor get lines fix.