Correctly handle empty files / sentences