Fixes #5196 return a unique list of hostnames for a single host pattern