Throw exception when name of field is empty and when field could not be renamed.