Handle the case where line_nums is undefined.