Simplified checking for page text

Change-Id: I90a6bb4ad39709ddff988135fcb1417e3c2244df