add exception when hostname not found in chefserver

@alberts-tid