Correctly handle empty context lines