Add line number to NameError when the line number is available.