Replace deprecated use of WikiError class

Change-Id: I5f86356a03c90943f52b81846dc15232e028782c