Fix Undefined wgSearchType

From I921badd

Change-Id: I4729a58a5e490c467062daede40bd9f3df9e9800
(cherry picked from commit ddaa85f036c340f5ec2181dc233f9da7a935ebb8)