re-factoring WikiPages::getTitleFromUrl

Change-Id: I036e95420b3f6a9e4ecfb541a6e6cebece48cae2