Add extra check in WikitextSubPageListRenderer to mitegate potential attack vector

Change-Id: Ib4bc2bd851fdd4527536a92c83de6287a7ab571b