Make ignoring of empty attributes optional.

The default behaviour is consistent with previous versions - ignore them.