Fix for "Check All/None" buttons in Special:ReplaceText for MW >= 1.20

Change-Id: Ie4688acba8c0b800a47718afa8ed4a17ef77ce08