Remove ugly $wgTitle usage from edit.php maintenance script

Change-Id: Iae44d0945a10832a7f6585d3620c8e994783457b
Merge "Remove ugly $wgTitle usage from edit.php maintenance script"