fixes #1669
more robust against unknown line info