Fix Call to a member function getContent() on a non-object

WikiPage::newFromID can return null

Bug: 54204
Change-Id: I32061908e59a302c98dac024315dea94d2eb6574