use dokuwiki class to find first log entry

the #dokuwiki__content id isn't present in custom templates, you can
only trust .dokuwiki class and renderer classes