closes #1597

turns out clicking back causes double script.init() calls and
ajaxify.variables.get('topic_id') can be undefined in one of those
calls.