Improve handling of empty comments

* a completely empty comment "{{!}}" was not being parse as such
* adding a single newline inside an empty comment like so:
      {{!
      }}
    was triggering an assertion error in the folding code.