[ticket/12843] Fix Mark forums read browser console error

https://tracker.phpbb.com/browse/PHPBB3-12843
https://area51.phpbb.com/phpBB/viewtopic.php?f=84&t=41208&start=120#p267767

Fixed error: when you click on "Mark forums read" in the browser console error occurs

PHPBB3-12843