don't add empty string name to publish block; fixes #313