Adding reference to bugreport

I reported two bugs:
 * https://bugs.dokuwiki.org/index.php?do=details&task_id=2858
 * https://bugs.dokuwiki.org/index.php?do=details&task_id=2859

and added the references in the relevant places in the code....