[ticket/13241] Fix pagination of viewforum with global announcements

https://tracker.phpbb.com/browse/PHPBB3-13241