Fix Undefined wgSearchType

From I921badd

Change-Id: I4729a58a5e490c467062daede40bd9f3df9e9800