so you are saying that in case hostgroup is nil, we get an exception regardless?