Get title from article rather than $wgTitle

Change-Id: Ic12f34adf8f289dbaa7b450eb3e5b4bbc3da4165