Prevent crash in current dokuwiki version (2014-09-29a "Hrun")

The Renderer counter is not resetted if render mode is not latex.
This prevents a PHP error when the protected _counter property is
accessed.