fix behavior new lines for NOTOC and NOCACHE syntax FS#2517

Whitespaces for the first header are already removed (by other parsing stuff i guess).

But this removed additional newline/whitespaces around this syntax.

https://bugs.dokuwiki.org/index.php?do=details&task_id=2517