Check for lineNumber support before using it

We may actually just want to remove this whole thing. I'm not sure it's super useful at this point since it doesn't seem to work ever.