Make ignoring of empty attributes optional.

The default behaviour is consistent with previous versions - ignore them.

Rationale: There are html attributes like selected or i18n:transalate=""  that are supposed to be empty. Scrubbing out those is not always desirable.