Handle missing line info in printcontext