Update sourcemap generation for valid line number mapping