[ticket/12881] Checks earlier if server-side topic marking is enabled

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