Replacing the above line with the following works:
```javascript
phpbb.addAjaxCallback('mark_topics_read', function(res, update_topic_links) {
	if(typeof(update_topic_links)==='undefined') update_topic_links = true;
```