Fixed bug when checking hostname aliases on creation of a  virtual host