Fix extra whitespace issue when comments are empty