Fix selection check in wikitext warning

Change-Id: I2f084eb4ee29bd166b05163cd2d6e64e0a4f136d