Fixes #5554 - fixed hostgroup and fqdn validations in multiple matchers