Improve Baidu and BaiduIp lookup by fixing error and cover test.
Merge pull request #585 from yonggu/baidu_lookup_improvement

Improve Baidu and BaiduIp lookup by fixing error and cover test.