Don't use $wgTitle when the parser can give us one

Simplify equality check for titles while we're here

Change-Id: I5eb0c1fac41cb4b3dc40c364a86b244dd96cb220