Gracefully handle missing lines in syntax highlighting