$text = $wgArticle->getContent();
I've seen other people suggesting using the appropriate Revision to
get the text, rather than the Article, perhaps you could try that. (I
don't know enough about it to know why it would have stopped working,
though.)