fix logic in module host to add aliases even if none exist already, fix #4563

self._has_aliases is used to know if a alias already exist, but
the test we want is to know if we need to add a new alias, which
is stored in self.aliases
Merge pull request #4595 from mscherer/fix_4563

fix logic in module host to add aliases even if none exist already, fix #4563