Change hostname transition

i presume that if asset.model.category.code is not set.. hostname will be generated without this value.
i think exception would be more proper.