buttonMarkup: Do not allow a value of null to end up the value of an ...

attribute, because it gets stringified as "null"

This fixes checkboxes.