Replace deprecated Title::getEscapedText call

Change-Id: I998370d618b185723eb2810c60c26a5ae2f34a4d