Should this be changed to addWikiTextAsContent? See the following from Release_notes/1.32:
(T198214) OutputPage::addWikiText(), OutputPage::addWikiTextWithTitle(), and OutputPage::addWikiTextTitle() have been deprecated, since they can result in untidy output. In addition OutputPage::addWikiTextTidy() and OutputPage::addWikiTextTitleTidy() was deprecated to make naming new methods consistent. Use OutputPage::addWikiTextAsInterface() or OutputPage::addWikiTextAsContent() instead, which ensures the output is tidy and clarifies whether content-language specific postprocessing should be done on the text.