[ticket/10050] "Mark topics as read" is displayed when there are no topics

Empty forum displays the "Mark topics as read" link.

This PR fixes that.

[PHPBB3-10050](http://tracker.phpbb.com/browse/PHPBB3-10050)