Be more careful about checking for boolean true

Excel doesn't add a date1904 attribute when it's false, but some other
libraries due (like the axlsx writing gem) and it's in the spec.