fixes #4152 - fix syntax error in _form.html.erb for hosts and hostgroups

This change is necessary; otherwise, plugins (like katello) that deface the host or hostgroups will experience errors rendering the form.