Use mw.Title#getRelativeText to deal with titles relative to specific namespaces

Added in MW core in Ie554adef, was backported to 1.24.

Change-Id: Iedc0319042529d41d29846d1734b5481850e9552
Merge "Use mw.Title#getRelativeText to deal with titles relative to specific namespaces"