xmlbuilder: bugfix in attribute handling

a tag callback can easily return a value (esp. in coffeescript)
which is not the expected hash of attributes for the current tag.