Correct invalid debug info metadata

Code review feedback on r176838 by Patrik Hägglund.