Fix extra newline when empty line indicator is at the beginning of a block