Get title from EditPage rather than $wgTitle

Change-Id: I743e4f8e35ffea244c12a8c80638338d48ca5c4b
Merge "Get title from EditPage rather than $wgTitle"