move bot check, tweak geolocate() for consistency with WMUtils change.