luci-base: fix host validation function

No match.