When adding a null as value of an attribute, a NullPointerException was
thrown by XMLWriter. Now the value is checked before and if it is null,
no attribute is written.