Empty boolean attributes are not removed

As discussed in #1078.
:+1: