Empty boolean attributes are not removed

As discussed in #1078.
`value` is always `array` or `null` so this is ok.