Only set domain if it is not blank