Fixed newFromPage() to work again for both page names and Title objects

Change-Id: Ibd0798f8f91ccf07d62376927481d0f8cbf917ca