[ticket/11892] Fix undefined variables: to_forum_id & to_topic_id

PHPBB3-11892
Merge remote-tracking branch 'prototech/ticket/11892' into develop

* prototech/ticket/11892:
  [ticket/11892] Fix undefined variables: to_forum_id & to_topic_id